Regression in speed of key listing
Jean-David Beyer
jdbeyer@exit109.com
Sat Jun 7 18:23:02 2003
Ingo Kl=F6cker wrote:
> Hi,
>=20
> KMail reads the list of public key with the following command line
> LANGUAGE=3DC gpg --batch --list-public-keys --with-fingerprint \=20
> --with-colons --fixed-list-mode --no-expensive-trust-checks
>=20
> With GnuPG 1.2.1 this is pretty quick:
>=20
>>time gnupg-1.2.1/g10/gpg --batch --list-public-keys \=20
>=20
> --with-fingerprint --with-colons --fixed-list-mode \=20
> --no-expensive-trust-checks >/dev/null
>=20
> real 0m0.638s
> user 0m0.570s
> sys 0m0.020s
>=20
> And with GnuPG 1.2.2 it's horribly slow:
>=20
>>time gnupg-1.2.2/g10/gpg --batch --list-public-keys \=20
>=20
> --with-fingerprint --with-colons --fixed-list-mode \=20
> --no-expensive-trust-checks >/dev/null
>=20
> real 0m15.929s
> user 0m13.230s
> sys 0m2.070s
>=20
> What's the reason for this slowdown? Which option has to be added to=20
> speed it up?
>=20
Similar to what I get.
valinux:jdbeyer[~]$ cat frammis
/usr/bin/gpg --version
/usr/local/bin/gpg --version
time /usr/bin/gpg --batch --list-public-keys --with-fingerprint=20
--with-colons --fixed-list-mode --no-expensive-trust-checks >/dev/null
time /usr/local/bin/gpg --batch --list-public-keys --with-fingerprint=20
--with-colons --fixed-list-mode --no-expensive-trust-checks >/dev/null
valinux:jdbeyer[~]$ ./frammis
gpg (GnuPG) 1.0.7 <---<<<
Copyright (C) 2002 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
Home: ~/.gnupg
Supported algorithms:
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA, ELG
Hash: MD5, SHA1, RIPEMD160
gpg (GnuPG) 1.2.2 <---<<<
Copyright (C) 2003 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA, ELG
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
Hash: MD5, SHA1, RIPEMD160, SHA256
Compression: Uncompressed, ZIP, ZLIB
real 0m0.254s
user 0m0.240s
sys 0m0.020s
real 0m1.307s
user 0m1.140s
sys 0m0.170s
valinux:jdbeyer[~]$
--=20
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 73926.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 12:15pm up 4 days, 3:31, 2 users, load average: 2.14, 2.18, 2.29