Mailing List Archive

[PATCH] Need for speed
Hi,

This is a speed-up patch. I converted a few loops from byte-per-byte
reading to block-per-block reading. Here's some numbers :

(GnuPG compiled with egcs 1.1.1 -O2 -m486 -g, timing done on a 486
dx4/100 under Linux 2.2.5, with a 14 MB .tar.bz file)

Symmetric encryption :
--------------------
CAST5 BLOWFISH 3DES
unpatched 2:33 2:36 3:12
patched 1:46 1:54 2:36

Symmetric decryption :
--------------------
CAST5 BLOWFISH 3DES
unpatched 1:55 1:58 2:38
patched :47 :49 1:32

Public-key encryption + signature : (2048-bit El-Gamal key)
---------------------------------
unpatched 2:35
patched 1:53

Public-key decryption + signature checking :
------------------------------------------
unpatched 1:56
patched :53


Notes:
- the way I patched plaintext.c isn't very clean...
- in the THANKS file, you list me as 'rguyomarch@ifn.fr'. This is
my professional address and since I'm doing this in my spare time at
home, can you change it to 'rguyom@mail.dotcom.fr' ? Thanks.

--
RĂ©mi <rguyom@mail.dotcom.fr> | Don't waste your computer's time :
PGP-encrypt anything important: | http://www.distributed.net/
www.gnupg.org - KeyID:0x85BD8B1B | http://www.distributed.net/source/