kiyoon / jupynium.nvim

Selenium-automated Jupyter Notebook that is synchronised with NeoVim in real-time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

High CPU Usage

FelixKratz opened this issue · comments

It seems when ever Jupynium is running it has a fairly high cpu utilization. I.e. when I run a regular jupyter notebook I will rarely see the cpu utilization (at idle) go above 1%, with jupynium running the python3 process is at a constant ~50% utilization. This could be due to an aggressive polling, but I am not sure.

Thanks for sharing. Maybe I can add an option to add sleep in the middle of the loop which will happen only when no events are there to process.

Probably my system is different so I can't exactly reproduce this, but I think this will fix it! Feel free to reopen the issue if you still have the same problem.

Indeed, it is down to ~5% now, thanks!