emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is lexical binding so slow?


From: Eli Zaretskii
Subject: Re: Why is lexical binding so slow?
Date: Tue, 26 Dec 2017 06:49:19 +0200

> From: Philipp Stephani <address@hidden>
> Date: Mon, 25 Dec 2017 21:20:23 +0000
> Cc: address@hidden
> 
> Stefan Monnier <address@hidden> schrieb am So., 2. Juli 2017 um 20:36 Uhr:
> 
>  > https://github.com/mooz/js2-mode/issues/426#issuecomment-312506855.
>  > Why is that?
> 
>  Depends on specifics, so someone would have to investigate. 
> 
> I that case the reason was just a dumb mistake on my part: I ran the 
> benchmark without byte-compiled files.
> With byte compilation lexical binding becomes at least as fast as dynamic 
> binding.

If lexical binding is slow when run with uncompiled code, then our
bootstrap is slower than it could be, because the first several dozen
Lisp files are compiled and loaded with Emacs whose byte compiler and
the rest of the Lisp code have not yet been byte-compiled.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]