From: Joey Hess Date: Mon, 7 Mar 2022 19:18:30 +0000 (-0400) Subject: comment X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~2^2^2~53^2~163 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=06c2f625a9ef5733cea469999e859b0ea8c9980d;p=git-annex.git comment --- diff --git a/doc/bugs/git-annex_is_slow_at_reading_file_content/comment_3_190a153449f7bb07fb4aca89db236881._comment b/doc/bugs/git-annex_is_slow_at_reading_file_content/comment_3_190a153449f7bb07fb4aca89db236881._comment new file mode 100644 index 0000000000..79c1d8d903 --- /dev/null +++ b/doc/bugs/git-annex_is_slow_at_reading_file_content/comment_3_190a153449f7bb07fb4aca89db236881._comment @@ -0,0 +1,26 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 3""" + date="2022-03-07T19:09:17Z" + content=""" +Cannot reproduce that: + + joey@darkstar:/tmp/rr>/usr/bin/time git-annex fsck bigfile + fsck bigfile (checksum...) ok + (recording state in git...) + 10.08user 0.35system 0:10.40elapsed 100%CPU (0avgtext+0avgdata 43500maxresident)k + joey@darkstar:/tmp/rr>/usr/bin/time sha256sum bigfile + 7219108977be820830169fc13fded5000e9db329fab4e687fc14236f932d4060 bigfile + 11.00user 0.28system 0:11.29elapsed 99%CPU (0avgtext+0avgdata 1956maxresident)k + 120inputs+0outputs (2major+105minor)pagefaults 0swaps + +(1 gb file; tmpfs) + +git-annex simply uses +[cryptonite](https://hackage.haskell.org/package/cryptonite) for hashing. +Which is a thin wrapper around C code, and contains optimised routines for +some processors, generally copied from the reference C implementations. + +The block size is 32 kb. This can be changed in Utility/Metered.hs +in defaultChunkSize. +"""]]