diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-10-07 11:35:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-07 11:35:38 -0400 |
| commit | 2053a2621a56177da34032a055dffe3f7bb384d1 (patch) | |
| tree | d34ae40b1c52989c16e78725b9b551e25b2f6e21 /lua/tests | |
| parent | d32d4a6e0f0c571941f1fd37759ca1ebbdd5f488 (diff) | |
feat: Use metatables to use less memory (#152)
Instead of storing everything in key / value pair hashes, we store as much as possible in an array and then reference the items in the array using metatables.
This provides us with a much lower memory footprint and just one level of table lookup indirection (so I think the speed will not be noticeably different)
Diffstat (limited to 'lua/tests')
| -rw-r--r-- | lua/tests/manual/newline_tables.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/tests/manual/newline_tables.lua b/lua/tests/manual/newline_tables.lua index 2212da9..ec4988e 100644 --- a/lua/tests/manual/newline_tables.lua +++ b/lua/tests/manual/newline_tables.lua @@ -1,9 +1,10 @@ --- require('plenary.reload').reload_module('telescope') +require('plenary.reload').reload_module('telescope') local finders = require('telescope.finders') local pickers = require('telescope.pickers') local sorters = require('telescope.sorters') local previewers = require('telescope.previewers') +local make_entry = require('telescope.make_entry') local my_list = { 'lua/telescope/WIP.lua', |
