From: Hi-Angel <hiangel999@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Lexical binding doesn't seem to be faster?
Date: Sun, 10 Mar 2019 22:53:15 +0300 [thread overview]
Message-ID: <CAHGDjgC8LhB7W3Da6fBgZhjJRpFn5FyPbbRC539HrjpEEWV21g@mail.gmail.com> (raw)
In-Reply-To: <jwv36nuo8te.fsf-monnier+emacs@gnu.org>
On Sun, 10 Mar 2019 at 21:59, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
> > If you say "several seconds enough", then it's already there, the
> > benchmark with GC enabled takes 9 seconds.
>
> Hmm... then there's a problem with the sampling. Is this in a batch
> Emacs session? What OS? I think this might deserve its own bug report.
It's `emacs -Q` ran one time. Archlinux here, but Emacs is not from a
repository, but a ≈month old version from git.
Something similar can be reproduced in 2 steps:
1. wget https://gitlab.freedesktop.org/libinput/libinput/raw/9a2d6f55b1276da11dd9b2c4c8e22a405576dfea/src/libinput.h
2. emacs -Q --eval "(progn (find-file \"./libinput.h\")
(profiler-start 'cpu) (benchmark-run-compiled 10
(c-font-lock-fontify-region 0 (point-max))) (profiler-report))"
Since by default cc-mode.el doesn't use lexical-binding, you should
get this result:
- ... 1 100%
Automatic GC 1 100%
Do you want me to open a report for above?
next prev parent reply other threads:[~2019-03-10 19:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-06 23:36 Lexical binding doesn't seem to be faster? Hi-Angel
2019-03-08 5:39 ` Stefan Monnier
2019-03-08 8:30 ` tomas
2019-03-08 13:53 ` Stefan Monnier
2019-03-09 8:21 ` tomas
2019-03-08 13:33 ` Hi-Angel
2019-03-09 15:06 ` Stefan Monnier
2019-03-10 15:16 ` Hi-Angel
2019-03-10 16:14 ` Hi-Angel
2019-03-10 18:07 ` Stefan Monnier
2019-03-10 18:47 ` Hi-Angel
2019-03-10 18:59 ` Stefan Monnier
2019-03-10 19:53 ` Hi-Angel [this message]
2019-03-10 20:48 ` Stefan Monnier
2019-03-10 21:22 ` Hi-Angel
2019-03-11 19:16 ` Hi-Angel
2019-03-11 19:26 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHGDjgC8LhB7W3Da6fBgZhjJRpFn5FyPbbRC539HrjpEEWV21g@mail.gmail.com \
--to=hiangel999@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.