UPDATE:
I tried installing emacs from https://github.com/konstare/emacs-gcc-pgtk, as /u/jmite suggested and, so far, it seems to have solved the problem. If so, I guess it's related to current emacs git.
I'll post further updates if relevant. Thanks all for your help!
Hi all.
I have this very strange problem and I hope someone can help me fix it (or least find out why it happens).
I'm using Doom emacs. I've submitted an issue with this problem but /u/hlissner marked it invalid for insufficient information. I completely understand because the information I have is indeed very vague but I don't have the expertise to provide more. He pointed a discourse thread with further information I could try but I've had no luck...
So what happens is emacs starts lagging very badly. Even just moving the cursor up and down is painful. It doesn't lag when I start it but after a short while it begins to lag more and more to the point where it simply becomes unusable. I have to keep restarting... Like every minute or so.
Can someone help me make something out of this? Or give some pointers on what to do to collect more information?
Thanks in advance.
The only thing I can provide is a profiling report (this is just moving the cursor).
The cpu report:
390 82% - command-execute 390 82% - call-interactively 390 82% - funcall-interactively 284 60% - previous-line 284 60% - line-move 218 46% line-move-visual 103 21% - windmove-right 103 21% - apply 103 21% - +popup--ignore-window-parameters-a 103 21% - let 103 21% - let* 103 21% - unwind-protect 103 21% - progn 103 21% - apply 103 21% - #<compiled 0x71cc7e0ad285e59> 103 21% - windmove-do-window-select 103 21% - windmove-find-other-window 103 21% window-in-direction 3 0% + counsel-M-x 44 9% + ... 35 7% + timer-event-handler 4 0% redisplay_internal (C function)
And the memory report
4,001,675 94% - command-execute 4,001,675 94% - call-interactively 4,001,675 94% - funcall-interactively 3,194,895 75% - eval-last-sexp 3,194,895 75% - apply 3,194,895 75% - #<compiled 0x12342dc99b38e559> 3,194,895 75% - elisp--eval-last-sexp 3,191,847 75% - eval 3,191,216 75% profiler-stop 631 0% profiler-start 2,048 0% + elisp--preceding-sexp 1,000 0% elisp--eval-last-sexp-print-value 749,248 17% - previous-line 749,248 17% - line-move 608,140 14% - line-move-visual 164 0% - posn-at-point 164 0% + eval 54,932 1% + windmove-right 1,540 0% + next-line 1,060 0% + windmove-left 184,855 4% + redisplay_internal (C function) 22,548 0% + #<compiled -0x3d826d111e7c954> 20,111 0% + timer-event-handler 1,440 0% + gcmh-register-idle-gc 800 0% + flycheck-maybe-display-error-at-point-soon 0 0% ...