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

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

Re: How should this profiler report interpreted?


From: Stefan Monnier
Subject: Re: How should this profiler report interpreted?
Date: Fri, 26 Mar 2021 15:41:45 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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 via email to

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