cr-marcstevens / sha1collisiondetection

Library and command line tool to detect SHA-1 collision in a file
Other
1.31k stars 185 forks source link

Fix performance regression on processors that allow unaligned mem access. #30

Closed shumow closed 7 years ago

shumow commented 7 years ago

This fix detects architectures that support unaligned memory access and avoids a memory copy on such platforms. This holds on the x86-32 and -64 processors, which are a common use case.

See discussion: https://github.com/cr-marcstevens/sha1collisiondetection/commit/33a694a9ee1b79c24be45f9eab5ac0e1aeeaf271