unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Subject: v2 lazy body insertion
Date: Tue, 21 Jun 2022 08:59:31 -0300	[thread overview]
Message-ID: <20220621115933.407563-1-david@tethera.net> (raw)

This obsoletes the series at [1]. Compared to that series, this does
not introduce an extra layer of buttons, but just toggles more parts
closed.  It still seems to be a similar (maybe even better, which is
suprising) performance improvement.  While doing this revision I
realized that notmuch-show-max-text-part-size can play a similar
role. There are some details to check there, in particular the setting
of 0 to disable is unfortunate.

In some sense the heuristic of only (fully) displaying shallow
messages is backwards. Most likely the thing user wants to read are
things near the leaves of the discussion tree. That will require
either extending the notmuch-show CLI output (boo!) or a second
recursive traversal of every message in emacs. I'll have to see if the
latter is a performance problem.

This revision also adds a few more performance tests, to avoid
overfitting to the display of one thread.

[1]: id:20220605170851.1595387-1-david@tethera.net


             reply	other threads:[~2022-06-21 11:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-21 11:59 David Bremner [this message]
2022-06-21 11:59 ` [RFC PATCH v2 1/2] perf-test/emacs: test showing longish threads David Bremner
2022-06-21 11:59 ` [RFC PATCH v2 2/2] emacs/show: optionally insert bodies lazily David Bremner

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=20220621115933.407563-1-david@tethera.net \
    --to=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).