-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
centaur-tabs Causing High CPU Use #222
Comments
I use doom on Linux and centaur-tabs is hitting my cpu quite heavily. Almost 50% of the entire doom-emacs load come from centaur-tabs alone:
Update: If I let the profiler run a little longer the result is worse ( More detailed result:
|
7 tasks
hlissner
pushed a commit
to doomemacs/doomemacs
that referenced
this issue
Apr 6, 2024
`centaur-tabs-buffer-update-groups` walks every buffer to determine the group it belongs to. This function can be called execessively (upwards of 1,000 times per second in certain conditions), as it is called on every redisplay (it is indirectly attached to `tab-line-format`). This rate limits its calls to about 10 per second. Close: #7792 Ref: ema2159/centaur-tabs#222
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've seen a couple of posts on similar issues in the past, such as
Centaur Tabs causing high CPU on macOS #88
(which is closed).
The problem is that according to the profiler
centaur-tabs-line
gets called about 100 times on every UI action, such as a key press or a mouse click. This makes Emacs unusably slow when I define a non-trivial centaur-tabs-buffer-groups function.
The text was updated successfully, but these errors were encountered: