summaryrefslogtreecommitdiff
path: root/server/main.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-20 18:22:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-20 18:22:56 +0800
commit99a2b022c46c713c14513fc24c79915fb256d8b7 (patch)
tree8f2d76b3c1619f60bb70641723fe7534bc411509 /server/main.lua
parent9a86f72c6cc23a0f685acdf6df7103981e7d3c44 (diff)
downloadlua-language-server-99a2b022c46c713c14513fc24c79915fb256d8b7.zip
尝试改成分代垃圾回收模式
Diffstat (limited to 'server/main.lua')
-rw-r--r--server/main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/main.lua b/server/main.lua
index 27c461c3..2f96e7cd 100644
--- a/server/main.lua
+++ b/server/main.lua
@@ -6,6 +6,8 @@ LANG = LANG or 'en-US'
package.path = (ROOT / 'src' / '?.lua'):string()
.. ';' .. (ROOT / 'src' / '?' / 'init.lua'):string()
+collectgarbage('generational')
+
log = require 'log'
log.init(ROOT, ROOT / 'log' / 'service.log')
log.info('Lua Lsp startup, root: ', ROOT)