emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs Lisp JIT Compiler


From: Tom Tromey
Subject: Re: Emacs Lisp JIT Compiler
Date: Mon, 13 Aug 2018 09:18:45 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux)

>>>>> "T" == T V Raman <address@hidden> writes:

T> Will it work with adviced functions?

Yes.  The JIT works by adding another slot to the bytecode object.
This slot holds the JIT-related data, like the compiled function.
So, things like advice don't affect the way it operates.

Writing this out made me remember another possible issue with the JIT:
because it works based on the bytecode object, when a closure is made
with make-byte-code, the JIT will compile each such closure separately.
It would be possible to, instead, have it compile a closure once; but at
some cost to the generated code.

Tom



reply via email to

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