You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
I made a minimal sha256sum rewrite out of cryptonite:
importSystem.EnvironmentimportCrypto.HashimportqualifiedData.ByteString.LazyasL
main =do
args <- getArgs
let file =head args
content <-L.readFile file
let digest = hashlazy content ::DigestSHA256putStrLn$show digest ++""++ file
However, it is 4-8 times slower than the regular sha256sum or openssl sha256 on machines with SHA accelerator. (Except on an M1 Pro where my coreutils' sha256sum also doesn't make use of SHA extensions but openssl does.)
there's no plan to tap in SHA instructions at the moment nor SIMD, so that's an expected slowdown. someone will have to add the instructions support and the layers of compat and fallback for this to happen.
I made a minimal
sha256sum
rewrite out of cryptonite:However, it is 4-8 times slower than the regular
sha256sum
oropenssl sha256
on machines with SHA accelerator. (Except on an M1 Pro where my coreutils'sha256sum
also doesn't make use of SHA extensions but openssl does.)Celeron J4105:
M1 Pro:
5800x:
(This is a minimal reproducer for a bug in git-annex: https://git-annex.branchable.com/bugs/git-annex_is_slow_at_reading_file_content/)
The text was updated successfully, but these errors were encountered: