Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@metaspartan
Copy link
Collaborator

No description provided.

Md-Cake and others added 5 commits May 30, 2024 18:23
mactop has high CPU usage. Running it with cpuprofiling shows that the
top CPU time is spent in the termui.Render calls (to be specific, in the
ioctl syscalls there).

I removed a bunch of unnecessary Render calls (there were some
duplicates) and replaced all the other calls with a throttled version: I
call Render in the main process but not more often than twice in the
single "update interval" period.

This should address issue #13.
fix: performance issue caused by the render calls
@metaspartan metaspartan merged commit a95b0ce into development May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants