[Psi-Devel] Bug#450736: psi: Sending GPG-encrypted messages is delayed by 4 seconds
Justin Karneges
justin-psi2 at affinix.com
Mon Nov 12 18:42:32 PST 2007
On Monday 12 November 2007 3:35 pm, Christoph Haas wrote:
> On Mon, Nov 12, 2007 at 03:24:03PM -0800, Justin Karneges wrote:
> > Hmm, I think I know what is happening. qca-gnupg is very slow with keyid
> > lookups. It hits gpg --list-keys whenever you do anything at all, and
> > that can really slow things down, particularly if you have a large
> > keyring.
>
> ~400 keys in my keyring. Strangely the qca-tls package didn't change.
> It's still 1.0-4.
The package providing gpg capability is qca-gnupg, so that's the one to watch.
> Strange "feature" that is does a lookup if you already
> know who to encrypt for. :)
New abstractions, ported code, deferring optimizations to later releases.
Yes, this can bring weird results. :)
> Loading the key(s) once at startup is probably way more efficient
> indeed. Although I wonder why a key with a certain ID could change
> anyway. So why monitor the keyring?
It's not that existing keys change (although they could, and Psi would track
it), but rather that new ids might get added. Monitoring the keyrings saves
us from needing some sort of manual "refresh" button.
-Justin
More information about the Psi-Devel
mailing list