Re: [RFE] Call `gpg --recv-keys` asynchronously

Subject: Re: [RFE] Call `gpg --recv-keys` asynchronously

Date: Tue, 28 Feb 2017 22:18:10 -0400

To: Sebastian Schwarz, notmuch@notmuchmail.org

Cc:

From: David Bremner


David Bremner <david@tethera.net> writes:

> Sebastian Schwarz <seschwar@gmail.com> writes:
>
>> Allow me add to this RFE.
>>
>> On 2017-02-28, Steven Allen wrote:
>>> Currently, notmuch fetches keys synchronously.  This can be
>>> *very* slow (I fetch keys over tor) and locks up emacs for the
>>> duration.  Therefore, this fetch really should be
>>> asynchronous.
>>
>> Even with all keys already present signature verification takes
>> some time as well.  It would be nice if this was done
>> asynchronously as well.  This would greatly improve the speed of
>> opening threads with large numbers of signed messages.
>
> Offhand, that sounds even harder.  With a noticable loss in security, we
> could cache the verifications in the database so the cost is only paid
> once.
>
> d

FWIW, these changes are pretty unrelated at an implimentation level. The
key fetching is done from emacs, while the verification is done in the
notmuch binary.

d

Thread: