[PATCH 3/3] perf-test/emacs: lazily insert message bodies with notmuch-show

2022-06-05 Thread David Bremner
As expected / hoped, this is much faster for large threads than actually inserting the bodies. --- performance-test/T06-emacs.sh | 4 1 file changed, 4 insertions(+) diff --git a/performance-test/T06-emacs.sh b/performance-test/T06-emacs.sh index ce04ca17..7f6fdfbe 100755 --- a/performance-t

[PATCH 1/3] perf-test/emacs: test showing a longish thread

2022-06-05 Thread David Bremner
This particular thread takes about 100 times longer to display in emacs than on the command line. --- performance-test/T06-emacs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/performance-test/T06-emacs.sh b/performance-test/T06-emacs.sh index 66f0be58..ce04ca17 100755 --- a/performance

[PATCH 2/3] emacs/show: optionally insert bodies lazily

2022-06-05 Thread David Bremner
Intially control lazy insertion by a depth limit. --- emacs/notmuch-show.el | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 203ca7f0..55c4e274 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmu

WIP/RFP: lazy body insertion for notmuch-show mode

2022-06-05 Thread David Bremner
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 a