summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-03 10:30:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-03 10:30:01 +0800
commit0237e54f0ac5a4a4ee94c1f5bebdf69e88e46c7e (patch)
tree563a3d08999f2a699bb02c039e9ce215da500987 /test-beta
parent57cea535eecca00f208e39f9afbbaab68f152c05 (diff)
downloadlua-language-server-0237e54f0ac5a4a4ee94c1f5bebdf69e88e46c7e.zip
将文件的 ast 与 lines 信息缓存在弱表里,使内存占用降低了75%,但是诊断耗时增加了50%
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/diagnostics/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/test-beta/diagnostics/init.lua b/test-beta/diagnostics/init.lua
index 3c2790ab..a467276c 100644
--- a/test-beta/diagnostics/init.lua
+++ b/test-beta/diagnostics/init.lua
@@ -50,6 +50,7 @@ function TEST(script, ...)
files.removeAll()
local new_script, target = catch_target(script, ...)
files.setText('', new_script)
+ files.open('')
local datas = {}
core('', function (results)
for _, res in ipairs(results) do