[guest - Fri Dec 5 08:02:13 2003]:
Show quoted text> I suggest that you should check the return value from
> read() like I do in Digest::base::addfile().
Are you referring to the latest, version 4.0.4? If so, Mark
reverted to using his old addfile(), which, indeed, doesn't
have checks. In his Changes file, he writes:
4.0.4 Thu Dec 4 00:07:00 MST 2003
- made Digest::SHA into a self-contained module
-- no longer depends on Digest::base
-- more convenient for users
-- no need to install Digest:: module
I had hope that we should ALL use Digest::base to be consistent,
but Mark had other plans. I'll release my own version of
SHA-256/384/512 which uses Digest::base, and runs faster than
Mark's.
Show quoted text> I also thought you concluded that it faster to read
> in smaller chunks?
From the benchmarks I got, 4K is the optimum buffer. Either > 4K
or < 4K is suboptimum.
Best regards,
Julius