diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-12 14:24:38 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-12 14:24:38 +0800 |
commit | d402f6fed15c9ba61edf7f6b7b22e648c7cded34 (patch) | |
tree | 5548c2dafc91a7d86f554090d06c9626c6cd988a /server/src/vm/chain.lua | |
parent | 37391cdd8171d70bcdbb90846636c0fb68b67be3 (diff) | |
download | lua-language-server-d402f6fed15c9ba61edf7f6b7b22e648c7cded34.zip |
减少清理频率,但会略微增加内存
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 a8ff01fa..6e7c6ac7 100644 --- a/server/src/vm/chain.lua +++ b/server/src/vm/chain.lua @@ -27,7 +27,7 @@ function mt:clearCache() end end self.count = n - self.max = self.count + 10 + self.max = self.count * 1.1 + 10 if self.max < self.min then self.max = self.min end |