From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Hi-Angel <hiangel999@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Lexical binding doesn't seem to be faster?
Date: Sun, 10 Mar 2019 14:07:59 -0400 [thread overview]
Message-ID: <jwv1s3epps6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAHGDjgDDBQMrZgxpvGfURHos=0tYqKOoKR5xzGhJ=3JmUVUj7g@mail.gmail.com> (Hi-Angel's message of "Sun, 10 Mar 2019 18:16:04 +0300")
> 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).
Stefan
next prev parent reply other threads:[~2019-03-10 18:07 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 [this message]
2019-03-10 18:47 ` Hi-Angel
2019-03-10 18:59 ` Stefan Monnier
2019-03-10 19:53 ` Hi-Angel
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
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=jwv1s3epps6.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
--cc=hiangel999@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.
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).