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

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

Date: Sun, 5 Jun 2022 14:08:51 -0300

To: notmuch@notmuchmail.org

Cc:

From: 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-test/T06-emacs.sh
+++ b/performance-test/T06-emacs.sh
@@ -21,4 +21,8 @@ time_emacs "tag messages" \
 time_emacs "show thread" \
 	   '(notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}")'
 
+time_emacs "lazy show" \
+	   '(let ((notmuch-show-depth-limit 0))
+		(notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}"))'
+
 time_done
-- 
2.35.2

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: