python snippet request: calculate MD5 checksum on 650 MB ISO cdrom image quickly

Tim Peters tim_one at email.msn.com
Tue Oct 24 18:39:15 EDT 2000


[Alexander Gavrilov]
> I run test script Tim posted and got the following results on my system:
>
> Timing C:\Program Files\Microsoft Visual
> Studio\MSDN98\98VS\1033\MSDNVS98.CHQ w/ size 95823736
> Time for getcrc32 is 29.852
> Time for getmd5 is 29.444
> Time for getsha is 31.513
>
> The system is Windows NT4 SP6, Dual Pentium II 300 Mhz

The program as posted used a 32Mb chunk size, so your memory configuration
is more interesting than anything else.  Play with this line:

> >     func(f, 2**25)

and see how it changes.  The sweet spot for you is probably substantially
lower.






More information about the Python-list mailing list