help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Lexical binding doesn't seem to be faster?


From: Hi-Angel
Subject: Re: Lexical binding doesn't seem to be faster?
Date: Sun, 10 Mar 2019 21:47:22 +0300

On Sun, 10 Mar 2019 at 21:08, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
> > Thanks, so, I did that, and without disabling GC results look quite odd.
> >
> > For "lexical-binding: t" it is:
> >
> >     - ...                                        2 100%
> >      - list                                      1  50%
> >       - -                                        1  50%
> >        - let                                     1  50%
> >         - let                                    1  50%
> >          - while                                 1  50%
> >           - funcall                              1  50%
> >            - #<compiled 0x15833de3b0c9>          1  50%
> >             - c-font-lock-fontify-region         1  50%
> >              - c-before-context-fl-expand-region 1  50%
> >               - mapc                             1  50%
> >                - #<compiled 0x15833db80701>      1  50%
> >                 - c-context-expand-fl-region     1  50%
> >                  - c-fl-decl-end                 1  50%
> >                   - c-literal-start              1  50%
> >                    - c-state-semi-pp-to-literal  1  50%
> >                       c-parse-ps-state-below     1  50%
> >        Automatic GC                              1  50%
>
> The code didn't run long enough to get any meaningful profile:
> profiler-start is sampling-based (and apparently in the above we only
> got 2 samples) so make sure the code runs for several seconds (the more
> the merrier).

If you say "several seconds enough", then it's already there, the
benchmark with GC enabled takes 9 seconds.



reply via email to

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