You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you first open nix-tree, it starts to precalculate a bunch of things in the background; which takes a while (should be less than 10 seconds on realistic dependency graph). I expect high cpu usage (close to 100%) when it's doing that.
However, it was supposed to settle down after a while. I can also observe that approximately 10% of a single CPU stays busy. I'll try to figure out the reason.
It was an easy fix. nix-tree has a background thread which ticks periodically and those ticks end up redrawing the screen (this is because the application sometimes has to measure how much time has passed after changing the sort order). This was happening quite often, I made it 10 times less often and the idle CPU usage dropped significantly.
I won't cut a release just yet because it is a pretty minor fix, but you should be able to test it if you use the current main branch.
I get constant ~10% CPU usage, even though the application is idling in background.
The text was updated successfully, but these errors were encountered: