emacs-devel
[Top][All Lists]
Advanced

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

Re: undo-auto--undoable-change infloop


From: Eli Zaretskii
Subject: Re: undo-auto--undoable-change infloop
Date: Wed, 27 Jul 2022 20:34:48 +0300

> From: Michael Heerdegen <michael_heerdegen@web.de>
> Date: Wed, 27 Jul 2022 19:06:29 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > > A CPU profiler report looks like this, with stuff less than 3% removed:
> > > 
> > >        24220  41% - timer-event-handler
> > >        21654  37%  - timer-activate
> > >        19231  33%   - timer--activate
> > >        17774  30%      timer--time-less-p
> > >        19949  34% - ...
> > >        19949  34%    Automatic GC
> > >        14040  24% + command-execute  ;; actual command execution time
> > >             [...] [...]
> > > 
> > > This is a very strange result, not saying anything to me.
> >
> > Why does it seem strange to you?
> 
> That there is no Lisp function there besides the timer stuff.  Undo
> stuff like amalgamating is done in Lisp, so such function(s) should
> appear there if they do work or initiate it.  And 30% time spent in
> `timer--time-less-p' doesn't look sane.

It's 30% for timer--time-less-p _and_its_callees_, so you should look
deeper.

The 34% figure for GC also doesn't look good, btw.



reply via email to

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