Closed nithinmuthukumar closed 7 months ago
interesting, i also randomly get really high cpu spikes for no reason. maybe the shell is busy looping for output or something when running an interactive command?
Just to add, running htop
and even cmatrix
(needed to find something not super complicated that hijacks your terminal output lol) does this. Seems like it's output related, but not 100% sure.
I believe the issue is with self.wait_for_job(job_id);
in job.rs. Removing the line and replacing with sleep(Duration::from_secs(30));
Seems to remove all performance issues. I thought it had to do with the duration of the program as it waits, but other long processes dont have any effects on performance, unless they take control of the terminal.
What went wrong?
Not sure what the reason is, will need further investigation
Once nvim is closed, it goes back to using very little resources