minad / org-modern

:unicorn: Modern Org Style
GNU General Public License v3.0
1.54k stars 48 forks source link

100% CPU usage [might need investigation] #176

Closed fintelkai closed 8 months ago

fintelkai commented 8 months ago

Hi, since a few days ago, after updating all my packages, I've been noticing Emacs eating my laptop battery. I have reason to think it has to do with org-modern and some kind of endless redisplay process. I'm on a M2 MacBook Air and the issue happens both with the emacs-mac port and cutting edge Emacs 30 via the emacs-plus repo. I'm watching the CPU usage via htop and can pretty reliably make it come and go by enabling/disabling org-modern-mode in the active buffer. I've tried the profiler and do see that a lot of time is spent on "redisplay_internal (C function)". I have very little experience tracking down issues like this and I'm in a very busy work period, so I may not be able to devote much time to this problem until the weekend. But I wanted to file the issue in case I'm not an outlier and victim of some fluke constellation of factors.

fintelkai commented 8 months ago

Never mind. I'm going to close this, because even after completely removing org-modern from my config, the issue is present in some org-mode buffers. So, I need to do more homework.