I am not sure how much it is from native Emacs, as when I did this, I also enabled all the other recommended optimizations from lsp (increasing the gc threshold early in the config, installing and compiling with native json support etc.)
As far as I know, the latest branch has all the necessary flags enabled, so you can just do
./autogen.sh && ./configure --with-nativecomp --with-xwidgets --with-json && make -j4 && make install
after you installed the dependencies and cloned the Emacs repo (--with-nativecomp may actually be set to default now in this branch). You also need a very recent version of gcc, as the libgccjit is somewhat new, and it may err on the compilation process.[1] https://lemire.me/blog/2018/07/25/it-is-more-complicated-tha...
--with-native-compilation
on the feature/native-comp branch (and it has to be specified otherwise it defaults to no)I'm running the "native-comp" (libgccjit) branch daily since months and months now: not a single problem here and I've got quite a "heavy" config (thousands of lines of custom config and all the usual suspects: magit / org-mode / lsp / cider etc.).
> I did try compiling it from source for my linux setup.
And it worked? Worked on the first try for me (on the Debian distro).
I was somehow expecting lots of problems (because it's one heck of a change) but it really all just compiled and worked perfectly fine.
I've been using https://github.com/flatwhatson/guix-channel to manage it. I don't recommend trying the Pure GTK+ stuff yet though; some context menus don't seem to work. Specifically, treemacs rename seems broken with PGTK.
https://github.com/jimeh/build-emacs-for-macos
The author curates a list of "known good" commits to the feature/native-comp branch so you don't waste your time with bad builds:
Works pretty much flawlessly, and it's much snappier on some of the workloads I put it through - like big collections of big Org Mode files, or viewing (and fontifying) large files.
https://copr.fedorainfracloud.org/coprs/deathwish/emacs-pgtk...
Unfortunately it keeps locking up my entire computer so might not be a goer just yet.