From: scame via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "47419@debbugs.gnu.org" <47419@debbugs.gnu.org>
Subject: bug#47419: 27.1; Misleading profiler info
Date: Sat, 27 Mar 2021 04:13:03 +0000 [thread overview]
Message-ID: <nqg-HBsud0c52wx_jOaPOUL9gQB1LIiBMMRQi09e_EKtg8PUKsvF7NmzfriQqkmc1PGd8g257KCE6MGzS1XKdzUHUIroM16CtGi4T7pb5P4=@protonmail.com> (raw)
In-Reply-To: <jwvzgypz82p.fsf-monnier+emacs@gnu.org>
>
> You can speed it up significantly by tightening the regexp,
> e.g. replacing .+ with [\s\t]+. It's still not superfast because our
> regexp engine is not tuned for that kind of situation, but it's better.
Right, thanks. I would have tried tightening the regexp if the profiler had
told me that was the problem, but as you write it incorrectly attributed
the slowness to the save-exursion call which put me on the wrong track
thinking it was some internal emacs bug.
prev parent reply other threads:[~2021-03-27 4:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-26 19:56 bug#47419: 27.1; slow running of snippet which reorders the file scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-27 1:55 ` bug#47419: 27.1; Misleading profiler info Stefan Monnier
2021-03-27 4:13 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
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='nqg-HBsud0c52wx_jOaPOUL9gQB1LIiBMMRQi09e_EKtg8PUKsvF7NmzfriQqkmc1PGd8g257KCE6MGzS1XKdzUHUIroM16CtGi4T7pb5P4=@protonmail.com' \
--to=bug-gnu-emacs@gnu.org \
--cc=47419@debbugs.gnu.org \
--cc=laszlomail@protonmail.com \
--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 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).