From: Rainer Gemulla <hqn1@gmx.de>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: notmuch-show-mode: slowdown due to redisplay
Date: Wed, 08 Dec 2021 12:15:31 +0100 [thread overview]
Message-ID: <877dcffiuk.fsf@macho> (raw)
In-Reply-To: <87a6hcwdys.fsf@tethera.net>
>> Navigating certain messages (e.g., with many attachments or images)
>> may become very slow in notmuch-show-mode. I see this rarely, but when
>> it happens, it takes >1s to simply move the point so that the buffer
>> is barely usable. The CPU profiler shows that
>> notmuch-show-command-hook calls redisplay and that's that all where
>> the time goes. Not sure if anything can be done about this.
>
> Hmm. Hard to debug without a sample message, or a more definite
> pattern. Do you notice a threshold in terms of numbers of attachements?
> I can imagine there is some bad behaviour involving large numbers of
> buttons when running redisplay.
I've tracked it down: it happens when multiple large images are attached to the email (and displayed inline) and global-hl-line-mode is turned on. The former slows down redisplay, the latter makes redisplay do something with every cursor movement.
next prev parent reply other threads:[~2021-12-08 11:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-07 8:38 notmuch-show-mode: slowdown due to redisplay Rainer Gemulla
2021-12-07 16:56 ` David Bremner
2021-12-08 11:15 ` Rainer Gemulla [this message]
2021-12-08 14:23 ` David Bremner
2021-12-08 15:14 ` Rainer Gemulla
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://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877dcffiuk.fsf@macho \
--to=hqn1@gmx.de \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.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://yhetil.org/notmuch.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).