unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Cc: Daniel Kahn Gillmor <dkg@debian.org>
Subject: speed of notmuch show --verify
Date: Fri, 24 Dec 2021 08:45:52 -0400	[thread overview]
Message-ID: <87o856npbz.fsf@tethera.net> (raw)


I was tracking down some performance issues in the display of long
threads, and I eventually realized the problem was actually in the
notmuch CLI. I'm not sure if this is fixable, but basically the calls to
gpg are very slow when running "notmuch show --verify".  On a 114
message thread (with 39 signed messages) from the Debian BTS, --verify
makes the elapsed time go from .03s to 1.54s. Perf shows most of the
"hot" symbols are in gpg or in the kernel called from gpg.

I guess a lazy inserting approach in notmuch-emacs might help this as
well, since we don't need to verify the signatures of messages we don't
read.

                 reply	other threads:[~2021-12-24 12:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87o856npbz.fsf@tethera.net \
    --to=david@tethera.net \
    --cc=dkg@debian.org \
    --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).