[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 289000e: Merge branch 'feature/native-comp' into trunk
From: |
Óscar Fuentes |
Subject: |
Re: master 289000e: Merge branch 'feature/native-comp' into trunk |
Date: |
Wed, 28 Apr 2021 17:10:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Alan Mackenzie <acm@muc.de> writes:
> OK, I see what you mean, now. Currently, if I understand correctly,
> regexps are compiled into an interpreted language at runtime, and they
> are stored in a (fairly large) cache indexed by the regexp string.
>
> When would you compile the regexps into native code? For constant
> regexps this can be done at build time, but there are regexps
> constructed at run time in Emacs. This compilation of regexps at run
> time might negate the advantages in speed that the complation would
> otherwise bring.
On simple strategy is to compile the regexps by explicit request of the
code author, he decides when a regexp is worth the extra work of turning
it into native code. As per the regexps built at run time, an ordinary
JIT compiler would have no problem with them at all, but Emacs JIT
engine puts the code it generates into shared libraries. I don't know if
it also supports generating and using code directly in memory.
- Re: master 289000e: Merge branch 'feature/native-comp' into trunk, (continued)
- Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Óscar Fuentes, 2021/04/26
- Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Eli Zaretskii, 2021/04/26
- Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Óscar Fuentes, 2021/04/26
- Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Alan Mackenzie, 2021/04/26
- Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Óscar Fuentes, 2021/04/26
- Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Alan Mackenzie, 2021/04/28
- Re: master 289000e: Merge branch 'feature/native-comp' into trunk,
Óscar Fuentes <=
- Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Stefan Monnier, 2021/04/26
- Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Andrea Corallo, 2021/04/26
- Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Alan Mackenzie, 2021/04/26
Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Stefan Monnier, 2021/04/25
Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Stefan Kangas, 2021/04/25
Re: master 289000e: Merge branch 'feature/native-comp' into trunk, Clément Pit-Claudel, 2021/04/25
Re: master 289000e: Merge branch 'feature/native-comp' into trunk, wilde, 2021/04/26
Minimal recommended version of gcc/libgccjit for native-comp (was: master 289000e: Merge branch 'feature/native-comp' into trunk), wilde, 2021/04/26