Last Updated: February 25, 2016
·
1.507K
· balajisi

Speedup Emacs startup using byte-compiled Elisp files

This is a cool tip if you load lots of custom packages during Emacs startup.

By byte-compiling your .el files into .elc files, and loading them instead of the source Lisp files, you can greatly speed up your Emacs startup time. For a reference on the magnitude of performance gained, please see this link on the GNU website.

This is fairly easy to do from within Emacs. Just press M-x (or Alt+x), followed by byte-compile-file and then select the file you want to compile. To save time, you can also use byte-recompile-directory for future compilations.

Now you just need to modify your INIT file accordingly to load the compiled file: (load-file "your-file.elc")