-
-
Notifications
You must be signed in to change notification settings - Fork 384
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
This server uses about 10% of my CPU when doing nothing.
To Reproduce
- Start lua-language-server manually in a terminal. Something like this:
./bin/macOS/lua-language-server -E -e LANG=\"EN-us\" main.lua
- Watch CPU utilization float around 10% in an activity manager.
Expected behavior
0% CPU utilization when idle.
Environment (please complete the following information):
- OS: macOS 11.1
Additional context
I'm guessing this is due to a timer busy-looping in script/service/service.lua:
function m.startTimer()
while true do
::CONTINUE::
pub.step()
if await.step() then
goto CONTINUE
end
thread.sleep(0.001)
timer.update()
end
end
But it's only speculation at this point.
akinsho
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request