GNU bug report logs -
#8890
23.3; message writing slows emacs
Previous Next
Reported by: Dave Abrahams <dave <at> boostpro.com>
Date: Sat, 18 Jun 2011 16:46:02 UTC
Severity: normal
Found in version 23.3
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #38 received at 8890 <at> debbugs.gnu.org (full text, mbox):
on Sun Sep 11 2011, Dave Abrahams <dave-AT-boostpro.com> wrote:
> on Sun Sep 11 2011, Eli Zaretskii <eliz-AT-gnu.org> wrote:
>
>>> From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
>>
>>> Cc: Eli Zaretskii <eliz <at> gnu.org>, 8890 <at> debbugs.gnu.org
>>> Date: Sun, 11 Sep 2011 16:52:56 +0200
>>>
>>> Emacs does clever screen updates, though. So if the only thing that
>>> changes is the number before the percentage, Emacs won't repaint the
>>> entire line, I think?
>>
>> True. Like I said, redisplay of the echo area is very fast.
>
> I don't think it's clever enough. Try this:
> (let (timings)
> (dolist (reps '(1 10))
> (let ((start-time (current-time)))
> (loop for x to 10000 do
> (loop repeat reps do
> (message "message #%s" x)))
> (push (time-subtract (current-time) start-time) timings)))
> (message "%s" (mapcar 'time-to-seconds timings)))
> I get (29.539774 2.514761)
>
> I think this shows that it takes (more than) 10x as long to write out
> the same message 10 times as it does to write it out once.
<bump>
The above looks to me like conclusive evidence that writing out the same
percentage many times as part of a progress indication, rather than,
say, updating progress information once per second, will slow things
down a lot... and that's not a Gnus-specific problem. *I* think this is
important, anyway.
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
This bug report was last modified 3 years and 45 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.