From 2053a2621a56177da34032a055dffe3f7bb384d1 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Wed, 7 Oct 2020 11:35:38 -0400 Subject: 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) --- lua/tests/manual/newline_tables.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/tests') 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', -- cgit v1.2.3