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:
TJ DeVries
2020-10-07 11:35:38 -04:00
committed by GitHub
parent d32d4a6e0f
commit 2053a2621a
2 changed files with 147 additions and 90 deletions

View File

@@ -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',