unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Why is lexical binding so slow?
Date: Tue, 26 Dec 2017 06:49:19 +0200	[thread overview]
Message-ID: <83bmimhz5c.fsf@gnu.org> (raw)
In-Reply-To: <CAArVCkRRC=8eCvnrjfOuvMZ=30AxJvsywrP3xBaOKD4hFxWkCA@mail.gmail.com> (message from Philipp Stephani on Mon, 25 Dec 2017 21:20:23 +0000)

> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Mon, 25 Dec 2017 21:20:23 +0000
> Cc: emacs-devel@gnu.org
> 
> Stefan Monnier <monnier@iro.umontreal.ca> 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	other threads:[~2017-12-26  4:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83bmimhz5c.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=p.stephani2@gmail.com \
    /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 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).