all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: How should this profiler report interpreted?
Date: Fri, 26 Mar 2021 15:41:45 -0400	[thread overview]
Message-ID: <jwvsg4h1z9d.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: 87y2e9hhug.fsf@zoho.eu

Emanuel Berg via Users list for the GNU Emacs text editor [2021-03-26 19:48:07] wrote:
> Stefan Monnier wrote:
>> If that's indeed the code in which all the time is spent,
>> then the profile is very misleading (IOW bogus) because the
>> time won't be spent in `save-excursion` but in
>> `re-search-backward`.
> Yes, but the regexps, expensive as they may be, shouldn't make
> the whole computer non-responsive, right?

Nothing in Emacs should ever make the whole computer non-responsive,
indeed, tho this is largely the responsibility of the OS rather than of
Emacs itself.
Did the OP say that his whole computer was unresponsive?

> 99% CPU?

The regexp matcher will happily use 99% of a CPU core given the
chance, yes.


        Stefan




  reply	other threads:[~2021-03-26 19:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26 15:24 How should this profiler report interpreted? scame
2021-03-26 17:58 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 18:38 ` Stefan Monnier
2021-03-26 18:48   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 19:41     ` Stefan Monnier [this message]
2021-03-26 21:45       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-27 16:22         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-27 16:30           ` Emanuel Berg via Users list for the GNU Emacs text editor
  -- strict thread matches above, loose matches on Subject: below --
2021-03-26 21:57 scame via Users list for the GNU Emacs text editor
2021-03-26 22:04 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 19:48 scame via Users list for the GNU Emacs text editor
2021-03-26 20:26 ` Joost Kremers
2021-03-26 15:28 scame via Users list for the GNU Emacs text editor
2021-03-26 15:49 ` Eli Zaretskii
2021-03-26 17:59 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 13:59 scame
2021-03-26 14:04 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 14:35 ` Eli Zaretskii

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=jwvsg4h1z9d.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /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.