From: Tadeus Prastowo <tadeus.prastowo@unitn.it>
To: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
Subject: Re: Lexical binding: why?
Date: Tue, 28 May 2019 14:01:27 +0200 [thread overview]
Message-ID: <CAA1Ytmukt2H=FNL5cZFoOy0ttvO+11trpOxzD0SVe06i5MROuw@mail.gmail.com> (raw)
In-Reply-To: <20190528100850.GA5296@ACM>
Hi Alan,
On Tue, May 28, 2019 at 12:53 PM Alan Mackenzie <acm@muc.de> wrote:
>
> Hello, Emacs.
>
> What is the purpose of converting Lisp files to use lexical binding?
AFAIK, the primary objective is to allow a multi-threaded Emacs.
> I always thought the idea was to speed the SW up. However, when I tried
> converting CC Mode to lexical binding, I got the following timings for
> two of my personal benchmarks:
>
> Dynamic binding Lexical binding
>
> Benchmark 1 7.249s 7.423s
>
> Benchmark 2 16.743s 16.691s
>
> . I thus see no speedup from the use of lexical binding.
Perhaps it is because a multi-threaded Emacs has not arrived yet?
> Have I, perhaps, made some mistake somewhere? Does anybody else see
> significant speed increases through the use of lexical binding?
>
> --
> Alan Mackenzie (Nuremberg, Germany).
--
Best regards,
Tadeus
next prev parent reply other threads:[~2019-05-28 12:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-28 10:08 Lexical binding: why? Alan Mackenzie
2019-05-28 12:01 ` Tadeus Prastowo [this message]
2019-05-28 12:26 ` Stefan Monnier
2019-05-28 13:02 ` Dmitry Gutov
2019-05-28 13:25 ` Stefan Monnier
2019-05-28 13:46 ` Dmitry Gutov
2019-05-28 13:44 ` Alan Mackenzie
2019-05-28 17:21 ` Stefan Monnier
2019-05-28 17:41 ` Alan Mackenzie
2019-05-28 17:58 ` Stefan Monnier
2019-05-28 15:19 ` John Wiegley
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='CAA1Ytmukt2H=FNL5cZFoOy0ttvO+11trpOxzD0SVe06i5MROuw@mail.gmail.com' \
--to=tadeus.prastowo@unitn.it \
--cc=acm@muc.de \
--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 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).