This particular thread takes about 100 times longer to display in
emacs than on the command line.
In a future commit, the parameter notmuch-show-depth-limit will
trigger lazy display of message bodies, which should improve
performance (at the expense of extra clicks to view a message).
---
performance-test/T06-emacs.sh | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/performance-test/T06-emacs.sh b/performance-test/T06-emacs.sh
index 66f0be58..09131b7a 100755
--- a/performance-test/T06-emacs.sh
+++ b/performance-test/T06-emacs.sh
@@ -18,4 +18,35 @@ time_emacs "tag messages" \
(notmuch-tag msg (list \"+test\"))
(notmuch-tag msg (list \"-test\"))))"
+time_emacs "show warmup" \
+ '(notmuch-show
"thread:{id:[email protected]}")'
+
+time_emacs "show thread #1" \
+ '(notmuch-show
"thread:{id:[email protected]}")'
+
+time_emacs "lazy show #1" \
+ '(let ((notmuch-show-depth-limit 0))
+ (notmuch-show
"thread:{id:[email protected]}"))'
+
+time_emacs "show thread #2" \
+ '(notmuch-show "thread:{id:[email protected]}")'
+
+time_emacs "lazy show #2" \
+ '(let ((notmuch-show-depth-limit 0))
+ (notmuch-show
"thread:{id:[email protected]}"))'
+
+time_emacs "show thread #3" \
+ '(notmuch-show "thread:{id:[email protected]}")'
+
+time_emacs "lazy show #3" \
+ '(let ((notmuch-show-depth-limit 0))
+ (notmuch-show "thread:{id:[email protected]}"))'
+
+time_emacs "show thread #4" \
+ '(notmuch-show
"thread:{id:[email protected]}")'
+
+time_emacs "lazy show #4" \
+ '(let ((notmuch-show-depth-limit 0))
+ (notmuch-show
"thread:{id:[email protected]}"))'
+
time_done
--
2.35.2
_______________________________________________
notmuch mailing list -- [email protected]
To unsubscribe send an email to [email protected]