unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Why is lexical binding so slow?
@ 2017-07-02 18:15 Philipp Stephani
  2017-07-02 18:36 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Philipp Stephani @ 2017-07-02 18:15 UTC (permalink / raw)
  To: Emacs developers

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-26  4:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-02 18:15 Why is lexical binding so slow? Philipp Stephani
2017-07-02 18:36 ` Stefan Monnier
2017-12-25 21:20   ` Philipp Stephani
2017-12-26  4:49     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).