From: "Clément Pit--Claudel" <clement.pit@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Byte-compiling and lexical scoping for performance
Date: Mon, 12 Dec 2016 09:51:07 -0500 [thread overview]
Message-ID: <8b40a3f9-9309-ab53-f664-bb6d00f0e29b@gmail.com> (raw)
[-- 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 --]
reply other threads:[~2016-12-12 14:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8b40a3f9-9309-ab53-f664-bb6d00f0e29b@gmail.com \
--to=clement.pit@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.