* The suggested configuration to speed up Emacs with libjansson and native elisp compilation enabled.
@ 2021-09-25 4:46 Hongyi Zhao
2021-09-25 7:59 ` Thibaut Verron
0 siblings, 1 reply; 3+ messages in thread
From: Hongyi Zhao @ 2021-09-25 4:46 UTC (permalink / raw)
To: help-gnu-emacs
I noticed the features and techniques to speed up Emacs with
libjansson and native elisp compilation, describe here [1-3]. I'm on
Ubuntu 20.04.2 LTS and compiled the latest git master Emacs with the
following steps:
$ sudo apt install libgccjit0 libgccjit-9-dev libjansson4 libjansson-dev
$ ./configure CFLAGS="-g3 -O2" --without-m17n-flt --with-native-compilation
$ make -j 44 bootstrap
$ make -j44 NATIVE_FULL_AOT=1
$ make tags
$ sudo make install
After I start Emacs with `emacs -Q', I confirmed the above features by
`C-j' the following code snippets in the scratch buffer:
(if (and (fboundp 'native-comp-available-p)
(native-comp-available-p))
(message "Native compilation is available")
(message "Native complation is *not* available"))
"Native compilation is available"
(if (functionp 'json-serialize)
(message "Native JSON is available")
(message "Native JSON is *not* available"))
"Native JSON is available"
But I'm not familiar with these features till now, so I want to know
the suggested configuration for them used in initialization file. Any
hints will be greatly appreciated.
[1] https://akrl.sdf.org/gccemacs.html#orgf5ebdd1
[2] https://ddavis.io/posts/emacs-native-centos7/
[3] https://www.masteringemacs.org/article/speed-up-emacs-libjansson-native-elisp-compilation
Regards
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: The suggested configuration to speed up Emacs with libjansson and native elisp compilation enabled.
2021-09-25 4:46 The suggested configuration to speed up Emacs with libjansson and native elisp compilation enabled Hongyi Zhao
@ 2021-09-25 7:59 ` Thibaut Verron
2021-09-25 10:48 ` Hongyi Zhao
0 siblings, 1 reply; 3+ messages in thread
From: Thibaut Verron @ 2021-09-25 7:59 UTC (permalink / raw)
To: Hongyi Zhao; +Cc: help-gnu-emacs
On Sat, 25 Sep 2021, 06:47 Hongyi Zhao, <hongyi.zhao@gmail.com> wrote:
> But I'm not familiar with these features till now, so I want to know
> the suggested configuration for them used in initialization file. Any
> hints will be greatly appreciated.
>
They should be plug and play. When loading packages you will get a few
freezes while emacs native compiles them the first time.
The fast json parser will mostly bring improvements to lsp-powered modes,
and again in that case it should be plug and play.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: The suggested configuration to speed up Emacs with libjansson and native elisp compilation enabled.
2021-09-25 7:59 ` Thibaut Verron
@ 2021-09-25 10:48 ` Hongyi Zhao
0 siblings, 0 replies; 3+ messages in thread
From: Hongyi Zhao @ 2021-09-25 10:48 UTC (permalink / raw)
To: Thibaut Verron; +Cc: help-gnu-emacs
Awesome, thanks!
On Sat, Sep 25, 2021 at 3:59 PM Thibaut Verron <thibaut.verron@gmail.com> wrote:
>
> On Sat, 25 Sep 2021, 06:47 Hongyi Zhao, <hongyi.zhao@gmail.com> wrote:
>>
>> But I'm not familiar with these features till now, so I want to know
>> the suggested configuration for them used in initialization file. Any
>> hints will be greatly appreciated.
>
>
> They should be plug and play. When loading packages you will get a few freezes while emacs native compiles them the first time.
>
> The fast json parser will mostly bring improvements to lsp-powered modes, and again in that case it should be plug and play.
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-25 10:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-25 4:46 The suggested configuration to speed up Emacs with libjansson and native elisp compilation enabled Hongyi Zhao
2021-09-25 7:59 ` Thibaut Verron
2021-09-25 10:48 ` Hongyi Zhao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).