Re:Whatever happened to SHA-256 support in Git?
by ztorkelson on Thursday June 23, 2022 @05:41PM
(#31855498)
Is this still true? I understood SHA256 to be faster than SHA512 due to hardware acceleration on current CPUs; dedicated instructions exist for the former but not the latter.
[ Parent
| on HN ]
Re:Whatever happened to SHA-256 support in Git?
by NovemberWhiskey on Friday June 24, 2022 @01:19PM
(#31866026)
It seems like it's not true on a MacBook with the Apple M1 processor; SHA-256 is now significantly faster. It still seems to be true on a couple of Intel machines I have access to.
Re:Whatever happened to SHA-256 support in Git?
by bawolff on Friday June 24, 2022 @08:02PM
(#31871042)
Googling i noticed there seems to be a bug in openssl where it does not use optimized sha-512 on m1 (but does for sha256) - https://github.com/openssl/openssl/issues/14897 so that might be the explanation.
Also i think the length of the input matters when comparing sha256 vs sha512.