0

Environment: Win7::x64/Emacs24.2.50.1-mingw, 3 opened frames, ~10-20 opened buffers with code (no smart autocompletion/etags/etc) and dired buffers (~ 50% / 50%). Average memory consumption ~25-50Mb. No extra packages from MELPA (or similar) loaded.

When Emacs is not closed for several days (mostly that happens after 3 days), Emacs does not follow my input from a keyboard: everything what was typed in is shown with an annoying delay. Switching between buffers has also a noticeable delay.

What I tried during the slow responsiveness of Emacs:

  • Killed all buffers

  • M-x garbage-collect

    But these did not work for me. The only way is to restart the application again. The memory consumption is still the same.

Are there any ideas/best-practices how to prevent such issues? Possibly unload and load again all packages? Or something else?

Thanks!

4

1 回答 1

2

由于您使用的是 Emacs 24.X,我建议您profiler-start在实例变得如此缓慢时执行。使用模式 cpu。使用 emacs 几秒钟,然后键入 Mxprofiler-report并查看结果。

运气好的话,你会找到“罪魁祸首”。如果这没有帮助,并且由于“三天”的等待,二等分很昂贵,我会遵循@Drew 建议升级到更新的 Emacs 非快照

于 2013-11-08T07:29:43.647 回答