Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just jumping on the Emacs bandwagon here to Ask HN: does anyone have tips and tricks for profiling my real-world Emacs setup? Between perhaps a too-large .git repository, and all my loaded extensions, and perhaps spellchecking or font-lock, i'm sometimes not sure what's causing latency, and while i couldn't go back to Vim feature-wise, i do miss its speed.


There is a profiler built into Emacs that will help:

https://www.gnu.org/software/emacs/manual/html_node/elisp/Pr...

https://www.emacswiki.org/emacs/EmacsNativeProfiler

Also, ESUP for profiling your startup time:

https://github.com/jschaf/esup

There's also a second profiler in Emacs, ELP, which can be used for testing individual functions:

https://www.emacswiki.org/emacs/EmacsLispProfiler


Awesome, thanks for the pointers! I feel silly for not RTFM.


It's all right -- I used Emacs for ten years before I learned there was a profiler! The FM is quite large. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: