Author: Stelian EneStelian Ene
Date: Nov 30, 2006 17:46
Tom St Denis wrote:
> Luc The Perverse wrote:
>>> What makes you think you can multi-thread MD5?
>>
>> There is probably someway to take advantage of another core - but I
>> doubt it would be trivial. Perhaps I am completely wrong - I don't
>> know enough about MD5
>
> You'd be wrong. At the point where you think MD5 could benefit from
> SMP [or dual-core since this isn't strictly SMP] you need to re-take
> your operating systems classes from school :-)
>
> The overhead alone in synchroizing two threads and extracting the
> results would be MORE than a single MD5 compression.
>
I think you could gain some speed for SHA-1 by precomputing some stuff. Each
uint must be read from the memory as big endian:
|