[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lexical binding: why?
From: |
Tadeus Prastowo |
Subject: |
Re: Lexical binding: why? |
Date: |
Tue, 28 May 2019 14:01:27 +0200 |
Hi Alan,
On Tue, May 28, 2019 at 12:53 PM Alan Mackenzie <address@hidden> 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
Re: Lexical binding: why?, John Wiegley, 2019/05/28