Re: [gentoo-portage-dev] GLEP59: Manifest2 hash types implementation

2011-09-30 Thread James Cloos
If you are going to update the hash code, you also should parallelize the calculation. Ie: call the initialization function of hash loop: read a block of the file mix it into each hash in turn end loop: finalize each hash It is silly and, for large DIST files, slow to read(2) the file n

Re: [gentoo-portage-dev] [PATCH 3/4] Manifest2 hash backend provider: mhash

2011-09-30 Thread Robin H. Johnson
On Fri, Sep 30, 2011 at 01:27:41AM +, Robin H. Johnson wrote: Offer mhash as a provider for Manifest2 hash generation and validation. This is important as none of pycrypto/hashlib/fchksum offer an accelerated Whirlpool implementaiton. Additionally, the mhash implementation is accelerated