unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* WIP/RFP: lazy body insertion for notmuch-show mode
@ 2022-06-05 17:08 David Bremner
  2022-06-05 17:08 ` [PATCH 1/3] perf-test/emacs: test showing a longish thread David Bremner
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Bremner @ 2022-06-05 17:08 UTC (permalink / raw)
  To: notmuch

Many people have observed that notmuch-show is slow to render large
threads. This is pretty annoying when most of the thread is off
screen. The usual trick of working asynchronously doesn't seem
hopeful, since most of the work is in emacs proper, not externally.
This series attempts to reduce the amount of time before emacs is
responsive again by deferring the rendering of messages below a
certain depth in the tree until the user manually triggers it, via a
button.

It isn't clear that depth is the best heuristic, but this seems like
an improvement on the status quo. Other heuristics could be added
later. I thought about some kind of "expose events" triggering the
rendering but I'm not sure that's better (and it seems harder). With
this approach the user can skip a few levels down the tree to render
the message they are interested in.

I learned while writing this that "text-buttons" might be faster. I'm
not sure my test thread of 264 messages is long enough to see the
difference. It would be helpful if people could test expanding message
bodies and see if there is an annoying lag. You will need to customize
the variable notmuch-show-depth-limit to test.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-05 17:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-05 17:08 WIP/RFP: lazy body insertion for notmuch-show mode David Bremner
2022-06-05 17:08 ` [PATCH 1/3] perf-test/emacs: test showing a longish thread David Bremner
2022-06-05 17:08 ` [PATCH 2/3] emacs/show: optionally insert bodies lazily David Bremner
2022-06-05 17:08 ` [PATCH 3/3] perf-test/emacs: lazily insert message bodies with notmuch-show David Bremner

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).