From: Philipp Stephani <p.stephani2@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Why is lexical binding so slow?
Date: Sun, 02 Jul 2017 18:15:20 +0000 [thread overview]
Message-ID: <CAArVCkScvmjtrBovGRZWthp8JjxOD1_C+NSSY-E5jNPKJxhTJw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 539 bytes --]
Hi,
the manual states (
https://www.gnu.org/software/emacs/manual/html_node/elisp/Lexical-Binding.html
):
"Lexical binding opens up many more opportunities for optimization, so
programs using it are likely to run faster in future Emacs versions."
However, in practice, at least some libraries are significantly slower with
lexical binding, cf.
https://github.com/mooz/js2-mode/issues/426#issuecomment-312506855.
Why is that? Shouldn't code compiled with lexical binding be at least as
fast as code compiled with dynamic binding?
Philipp
[-- Attachment #2: Type: text/html, Size: 826 bytes --]
next reply other threads:[~2017-07-02 18:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-02 18:15 Philipp Stephani [this message]
2017-07-02 18:36 ` Why is lexical binding so slow? Stefan Monnier
2017-12-25 21:20 ` Philipp Stephani
2017-12-26 4:49 ` Eli Zaretskii
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=CAArVCkScvmjtrBovGRZWthp8JjxOD1_C+NSSY-E5jNPKJxhTJw@mail.gmail.com \
--to=p.stephani2@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.