all messages for Emacs-related lists mirrored at yhetil.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 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.