bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44238: 28.0.50; [feature/native-comp] Build trampolines for FULL_AOT


From: Andrea Corallo
Subject: bug#44238: 28.0.50; [feature/native-comp] Build trampolines for FULL_AOT builds
Date: Mon, 26 Oct 2020 13:40:48 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Andrew Whatson <whatson@gmail.com> writes:

> Hi Andrea,
>
> In the spirit of pre-compiling as much as possible, would it make
> sense to pre-compile all the trampolines when preparing a FULL_AOT
> build?

Hi Andrew,

IMO is not worth compiling almost 1500 files for really using just a few
of them.  Also the compilation is realtivelly quick (~0.2s each on my
machine), I guess the most is GCC/GAS startup time.  Indeed this time is
payed only once when the primitive is redefined the first time.

That said if you want to experiment I think something like this should
do the job:

(mapatoms (λ (s)    
            (when (subr-primitive-p (symbol-function s))
              (comp-trampoline-compile s))))

Ciao!

  Andrea





reply via email to

[Prev in Thread] Current Thread [Next in Thread]