4 ms·
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
by toothbrush 10y ago
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.
- gmfawcett 10y agoThere is a profiler built into Emacs that will help: https://www.gnu.org/software/emacs/manual/html_node/elisp/Profiling.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Pr... https://www.emacswiki.org/emacs/EmacsNativeProfiler https://www.emacswiki.org/emacs/EmacsNativeProfiler Also, ESUP for profiling your startup time: https://github.com/jschaf/esup 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 https://www.emacswiki.org/emacs/EmacsLispProfiler
- toothbrush 10y agoAwesome, thanks for the pointers! I feel silly for not RTFM.
- gmfawcett 10y agoIt's all right -- I used Emacs for ten years before I learned there was a profiler! The FM is quite large. :)