* Byte-compiling and lexical scoping for performance
@ 2016-12-12 14:51 Clément Pit--Claudel
0 siblings, 0 replies; only message in thread
From: Clément Pit--Claudel @ 2016-12-12 14:51 UTC (permalink / raw)
To: Emacs developers
[-- Attachment #1.1: Type: text/plain, Size: 886 bytes --]
Hi emacs-devel,
The article at http://nullprogram.com/blog/2016/12/11/ is an interesting read:
> Faster Elfeed Search Through JIT Byte-code Compilation
>
> Today I pushed an update for Elfeed that doubles the speed of the
> search filter in the worse case. […]
>
> There’s one last thing to watch out for. Everything so far has been
> compiled with lexical scope. […]
>
> Lexical scope has better performance. Here are all the benchmarks
> with the default dynamic scope: […]
>
> It halves the performance […] Under dynamic scope, local variables
> use the varref opcode — a global variable lookup — instead of the
> stack-ref opcode — a simple array index.
(sending this here and not to -discuss because IIRC we have few examples of lexical binding being used for performance — json.el is the only one I remember)
Cheers,
Clément.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-12-12 14:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-12 14:51 Byte-compiling and lexical scoping for performance Clément Pit--Claudel
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.