unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dave Abrahams <dave@boostpro.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: larsi@gnus.org, 8890@debbugs.gnu.org
Subject: bug#8890: 23.3; message writing slows emacs
Date: Sun, 11 Sep 2011 06:45:39 -0400	[thread overview]
Message-ID: <m2ehznnyr0.fsf@pluto.luannocracy.com> (raw)
In-Reply-To: <E1R2fpN-00018z-JQ@fencepost.gnu.org> (Eli Zaretskii's message of "Sun, 11 Sep 2011 04:55:49 -0400")


on Sun Sep 11 2011, Eli Zaretskii <eliz-AT-gnu.org> wrote:

>> From: Dave Abrahams <dave@boostpro.com>
>
>> Date: Sun, 11 Sep 2011 02:54:34 -0400
>> Cc: 8890@debbugs.gnu.org
>> 
>> I mean to buffer the message until it has been stable for some
>> amount of time.
>
> I don't understand the details of the feature you are requesting.
> Suppose `message' is being repeatedly called by some Lisp program in
> quick succession -- what would you like to be actually displayed? only
> the text of final message?  If so, why is that a good idea?  Most
> "good" uses of fast echoing display very similar messages, like
> "Updating... NN% done", where only the number changes.  

OK, good point.  But actually it's those that set the message once for
each percentage (or even more often) that cause me the most (perceived)
slowdown.  If you're just updating percentage complete, please don't do
it more than once every .5 seconds... at the fastest!

> It would be a pity to lose this checkpointing feature, IMO.  So you
> will probably say that there should be a variable to be bound to
> select one behavior or the other.  

No need to argue against that; I wasn't going to suggest it.

> Your original report says:
>
>   I haven't done actual timings, but I'm finding that I have a *very*
>   strong perception that when emacs is writing lots of messages, it
>   slows down considerably.
>
> Redisplay always slows down, but on any modern machine displaying only
> the echo area should take a few milliseconds at the most, so I'd be
> surprised if some real slowdown was involved.  

Don't forget that messages also fill up the *Messages* buffer.

> If you can show some timings, please do, as there could be a bug or
> misfeature somewhere.

I probably don't have time to do it, sadly.  So you will probably say
there should be a variable bound to give me more time... wait, I mean
you'll probably say that's a cop-out.  Guilty as charged.

> Anyway, can you describe the situation in which you see these flashing
> messages?  The only one I can think of is when Emacs starts up and
> restores a previous session.  Is that your use case, or did you see
> this in other situations?

Yeah, there's something in Gnus, perhaps article expiry, that seems slow
mostly because gnus-verbose defaults to 7 and it writes out gobs of
messages.  When I turned gnus-verbose down it seemed a lot faster.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com





  reply	other threads:[~2011-09-11 10:45 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-18 16:45 bug#8890: 23.3; message writing slows emacs Dave Abrahams
2011-09-11  4:32 ` Lars Magne Ingebrigtsen
2011-09-11  6:54   ` Dave Abrahams
2011-09-11  8:55     ` Eli Zaretskii
2011-09-11 10:45       ` Dave Abrahams [this message]
2011-09-11 11:20         ` Eli Zaretskii
2011-09-11 11:30           ` Dave Abrahams
2011-09-11 14:52             ` Lars Magne Ingebrigtsen
2011-09-11 15:58               ` Eli Zaretskii
2011-09-11 16:39                 ` Dave Abrahams
2011-09-16  2:22                   ` Dave Abrahams
2011-09-16  8:54                   ` Eli Zaretskii
2011-09-11 14:51         ` Lars Magne Ingebrigtsen
2011-09-16 13:18 ` Stefan Monnier
2011-09-16 13:45   ` Eli Zaretskii
2011-09-16 14:20     ` Stefan Monnier
2011-09-16 15:11       ` Dave Abrahams
2011-09-17  5:19         ` Lars Magne Ingebrigtsen
2011-09-17  6:23           ` Dave Abrahams
2011-09-17  8:25           ` Eli Zaretskii
2011-09-17  8:29             ` Lars Magne Ingebrigtsen
2011-09-17  9:24               ` Eli Zaretskii
2011-09-17 12:01               ` Juri Linkov
2011-09-17 21:06           ` Stefan Monnier
2011-09-18  6:50             ` Lars Magne Ingebrigtsen
2011-09-18 13:16               ` Stefan Monnier
2011-09-21 19:01                 ` Lars Magne Ingebrigtsen
2022-04-26 13:20           ` Lars Ingebrigtsen
2011-09-16 15:09     ` Dave Abrahams

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=m2ehznnyr0.fsf@pluto.luannocracy.com \
    --to=dave@boostpro.com \
    --cc=8890@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.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 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).