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)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user