[Gpg4win-devel] Very slow gpgme_get_key()

Andre Heinecke aheinecke at intevation.de
Tue Feb 27 14:44:25 CET 2018


Hi,

On Tuesday, February 27, 2018 1:01:54 PM CET Volker Birk wrote:
> when comparing command line
> 
> $ gpg --list-key
> $ gpg --armor --export
> 
> with calling gpgme_get_key() the command line is pretty fast (round
> about 80 keys in keyring), while gpgme_get_key() is lasting for more
> than 600ms. The problem seems to be Windows only, on other platforms
> I'm not experiencing this.

I'm currently not aware of an issue that command line is much slower then 
gpgme. But we are also having trouble with slow keylistings and are planning 
improvements for that: https://dev.gnupg.org/T3793
 
> Are there any hints for what I could search for (configure options,
> etc.)? I'm using GPG4Win 3.0.3 in default distribution and setup.

A big difference for me was in the past keyring v.s. keybox. When importing a 
large keyring it was an order of magnitude slower to use keyring instead of 
using keybox. Maybe your Windows system still has a keyring?
We'll probably add a migration in the next Gpg4win release to migrate existing 
keyrings to the keybox format.

Another thing thats often detrimental to GnuPG's windows performance are too 
small buffer sizes in I/O but I doubt that this is the problem here if the 
command line is faster then gpgme.

And when comparing command line v.s. GPGME are you using --with-colons an the 
command line with the keylist? In the past we had some bugs regarding TOFU 
that were only visible when using --with-colons. [1]

If you see a big difference between a simple gpgme usage (e.g. tests/run-
keylist) v.s. command line please open a ticket under:

	https://dev.gnupg.org/

With your example commands / test.

I'm all in favor of fixing performance issues there as Gpg4win utilizes key 
listings through gpgme a lot. :-)


Best Regards,
Andre

1: https://dev.gnupg.org/T2812
-- 
Andre Heinecke |  ++49-541-335083-262  | http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.wald.intevation.org/pipermail/gpg4win-devel/attachments/20180227/394b385d/attachment.asc>


More information about the Gpg4win-devel mailing list