Hacker News new | ask | show | jobs
by earthscienceman 1573 days ago
Two things. Emacs as a daemon! And. Emacs 28 native compilation. Absolute game changer for speed in a million ways. Scrolling a 5000 line python source file with all the packages, syntax highlighting, etc etc, is buttery smooth:

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

1 comments

Yeah… I should probably set up the daemon sometime. I just tweak my config so much (it's Emacs, c'mon) that it's just been simpler for me for some reason to just launch it fresh for forever.

native-comp doesn't do anything for start up. Good tip though—I've been running bleeding-edge Emacs for a while now. ;-)

I ran `esup` and figured out most of the slowdown is from the otherwise excellent straight.el [1] package manager. I put

    (setq straight-check-for-modifications '(check-on-save find-when-checking))
in my init, and now everything is really speedy!

[1]: https://github.com/raxod502/straight.el#my-init-time-got-slo...

Native comp doesn't do anything for for startup implicitly, absolutely. There are no startup optimizations or anything like that. However, the speed with which elisp runs on native comp seems to be between 1.5 and 10 times faster. I run emacs on a lot of underpowered arm devices (think rpi zero) and use my full config. And the decrease in startup time on those machines was astonishing.