diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-10 21:29:53 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-10 21:29:53 +0800 |
commit | a97ca0012892604e12cf2e58c2d780140a498b81 (patch) | |
tree | a5fb42fb691e42b9f1993e2e7ca0eff8eb6fa6d5 /server/src/vm/chain.lua | |
parent | ccae29c7a288aa200fdab3b2ec4bd2688786d601 (diff) | |
download | lua-language-server-a97ca0012892604e12cf2e58c2d780140a498b81.zip |
减少chain的缓存空间
Diffstat (limited to 'server/src/vm/chain.lua')
-rw-r--r-- | server/src/vm/chain.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/vm/chain.lua b/server/src/vm/chain.lua index 55947105..7d56e1bf 100644 --- a/server/src/vm/chain.lua +++ b/server/src/vm/chain.lua @@ -26,7 +26,7 @@ function mt:clearCache() end end self.count = n - self.max = self.count * 2 + self.max = self.count + 10 if self.max < self.min then self.max = self.min end |