Closed ikeji closed 2 years ago
Unfortunately, I cannot fix the problem.
denite.nvim has CPU usage and the performance problem.
You should use ddu.vim
instead.
https://github.com/Shougo/ddu.vim
I think the process cannot be killed(ignored stop signal). If the CPU usage is high, it causes sometime. No magic.
I think this is more like task leak instead of performance problem.
I found this command resolve CPU usage in python side, but Vim side is not.
unlet g:denite#_channel_id
If the Python task is heavy, Vim cannot quit the task. Because the signal is ignored. And the remote plugins has task cleanup problems. I gave up and move to denops.
I have tested your example and I cannot reproduce it!
I have changed the example. I will try it.
Updated the script.
Hi, I have updated denite.nvim. Please use the latest version.
Thanks. I tested the new version and the bug is gone!
Thanks a lot!
Problems summary
Sometime, vim and python process consume high CPU time. And I found it's happen after using denite plugin.
Expected
After close denite buffer, denite plugin doesn't consume CPU time.
Environment Information (Required!)
:checkhealth
or:CheckHealth
result(neovim only): https://gist.github.com/ikeji/0fd328026ec686e3b5b6ef432c71bde5Provide a minimal init.vim with less than 50 lines (Required!)
and slow command is this script
How to reproduce problems from neovim startup (Required!)
Denite -start-filter slow
The high CPU usage doesn't happen always, need to repeat few times for reproduce. In my machine, it happened in 1-3 times.
Upload the log file
I set NVIM_PYTHON_LOG_FILE=/tmp/log, but it generate /tmp/log_py4_rplugin only. does this the log that is required?
Here is a repeated part of log_py3_rplugin. https://gist.github.com/ikeji/a0f1d6329ef50801ef0601a116d4b6e0 Here is a entire log file. http://test.ikeji.ma/log_py3_rplugin (warning: 62MB)
Does anyone have any idea to avoid this?