Commit graph

13911 commits

Author SHA1 Message Date
Joey Hess
688aa083de update 2013-09-22 23:01:08 -04:00
Joey Hess
1f5750a1ec blog the last 3 days and nights 2013-09-22 22:48:16 -04:00
Joey Hess
9cc3510127 Merge branch 'master' of ssh://git-annex.branchable.com 2013-09-22 22:48:05 -04:00
Joey Hess
d6c2fa5199 explicit cryptohash dep 2013-09-22 21:53:01 -04:00
https://me.yahoo.com/a/FHnTlSBo1eCGJRwueeKeB6.RCaPbGMPr5jxx8A--#ce0d8
004178ee89 Added a comment 2013-09-23 00:34:28 +00:00
Joey Hess
bf95d773ea Merge branch 'master' of ssh://git-annex.branchable.com 2013-09-22 20:18:23 -04:00
Joey Hess
7390f08ef9 Use cryptohash rather than SHA for hashing.
This is a massive win on OSX, which doesn't have a sha256sum normally.

Only use external hash commands when the file is > 1 mb,
since cryptohash is quite close to them in speed.

SHA is still used to calculate HMACs. I don't quite understand
cryptohash's API for those.

Used the following benchmark to arrive at the 1 mb number.

1 mb file:

benchmarking sha256/internal
mean: 13.86696 ms, lb 13.83010 ms, ub 13.93453 ms, ci 0.950
std dev: 249.3235 us, lb 162.0448 us, ub 458.1744 us, ci 0.950
found 5 outliers among 100 samples (5.0%)
  4 (4.0%) high mild
  1 (1.0%) high severe
variance introduced by outliers: 10.415%
variance is moderately inflated by outliers

benchmarking sha256/external
mean: 14.20670 ms, lb 14.17237 ms, ub 14.27004 ms, ci 0.950
std dev: 230.5448 us, lb 150.7310 us, ub 427.6068 us, ci 0.950
found 3 outliers among 100 samples (3.0%)
  2 (2.0%) high mild
  1 (1.0%) high severe

2 mb file:

benchmarking sha256/internal
mean: 26.44270 ms, lb 26.23701 ms, ub 26.63414 ms, ci 0.950
std dev: 1.012303 ms, lb 925.8921 us, ub 1.122267 ms, ci 0.950
variance introduced by outliers: 35.540%
variance is moderately inflated by outliers

benchmarking sha256/external
mean: 26.84521 ms, lb 26.77644 ms, ub 26.91433 ms, ci 0.950
std dev: 347.7867 us, lb 210.6283 us, ub 571.3351 us, ci 0.950
found 6 outliers among 100 samples (6.0%)

import Crypto.Hash
import Data.ByteString.Lazy as L
import Criterion.Main
import Common

testfile :: FilePath
testfile = "/run/shm/data" -- on ram disk

main = defaultMain
        [ bgroup "sha256"
                [ bench "internal" $ whnfIO internal
                , bench "external" $ whnfIO external
                ]
        ]

sha256 :: L.ByteString -> Digest SHA256
sha256 = hashlazy

internal :: IO String
internal = show . sha256 <$> L.readFile testfile

external :: IO String
external = do
	s <- readProcess "sha256sum" [testfile]
        return $ fst $ separate (== ' ') s
2013-09-22 20:06:02 -04:00
John
a60fcd6aac Added a comment 2013-09-22 22:20:22 +00:00
https://me.yahoo.com/a/FHnTlSBo1eCGJRwueeKeB6.RCaPbGMPr5jxx8A--#ce0d8
3e078ace5a Added a comment 2013-09-22 21:18:17 +00:00
Joey Hess
4cee7cbac6 Merge branch 'master' of ssh://git-annex.branchable.com 2013-09-22 16:46:11 -04:00
Joey Hess
7eb347a374 tip about offline archive drives 2013-09-22 16:31:21 -04:00
https://www.google.com/accounts/o8/id?id=AItOawkSbvo_NbY-ev1VKtzwo7nEqUmvRO6rXGA
633f60eedc Added a comment 2013-09-22 18:30:45 +00:00
http://joeyh.name/
baaeb3f89e Added a comment 2013-09-22 14:15:28 +00:00
Joey Hess
7dc188acea Merge branch 'master' of ssh://git-annex.branchable.com 2013-09-22 09:47:31 -04:00
Joey Hess
7719abc044 fix typo in runshell (will update standalone builds for last release) 2013-09-22 09:45:50 -04:00
John
7adcc8a7b6 2013-09-22 00:50:54 +00:00
John
86c9480418 Added a comment: runshell typo prevents execution 2013-09-22 00:24:11 +00:00
http://christian.amsuess.com/chrysn
6d24155365 warning to people who want to do this with encrypted remotes 2013-09-21 16:35:17 +00:00
https://id.koumbit.net/anarcat
434dc22881 raise this question again, and sign so I can find it again :) 2013-09-21 15:23:22 +00:00
https://id.koumbit.net/anarcat
a8fcefaf70 what i use git-annex for 2013-09-21 15:21:58 +00:00
http://christian.amsuess.com/chrysn
d4739c5821 fix wording (sparse checkout -> shallow clone), more details, formatting 2013-09-21 15:01:42 +00:00
https://id.koumbit.net/anarcat
3399d826d4 mention wishlist 2013-09-21 14:06:07 +00:00
https://id.koumbit.net/anarcat
136d307d12 2013-09-21 14:04:08 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnxlx1UrzVhdy6_gFjzmF42x6QXxBUxg00
96d9639683 Added a comment: size of repo 2013-09-21 09:32:08 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnSenxKyE_2Z6Wb-EBMO8FciyRywjx1ZiQ
0ba0369c45 Added a comment 2013-09-20 20:30:52 +00:00
ringprince
83c20ddb1b Added a comment 2013-09-20 20:16:47 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmOsy6nbvPyXLd--qqjPMLnVIzxgZwtKlQ
306eddd575 Added a comment 2013-09-20 19:03:14 +00:00
Joey Hess
2c0f751a16 Merge branch 'master' of ssh://git-annex.branchable.com 2013-09-20 12:20:33 -04:00
Joey Hess
3bd05c27d2 work around evilsplicer bug
Really simple TH splices are printed in a way it doesn't parse.
2013-09-20 12:19:55 -04:00
http://joeyh.name/
d66f71ad60 Added a comment 2013-09-20 15:37:48 +00:00
http://joeyh.name/
11b3bd74d7 Added a comment 2013-09-20 15:36:25 +00:00
http://joeyh.name/
8b47a19b77 Added a comment 2013-09-20 15:31:18 +00:00
http://joeyh.name/
b00c1e5cdc Added a comment 2013-09-20 15:24:25 +00:00
Joey Hess
210700493d release notes 2013-09-20 10:53:56 -04:00
Joey Hess
a45c7f85d0 Merge branch 'master' of ssh://git-annex.branchable.com 2013-09-20 10:52:59 -04:00
ringprince
8f28643c89 2013-09-20 14:46:21 +00:00
Joey Hess
70f205717c release 2013-09-20 10:43:08 -04:00
Joey Hess
a7f8e957a8 Merge branch 'master' of ssh://git-annex.branchable.com 2013-09-20 10:34:41 -04:00
https://www.google.com/accounts/o8/id?id=AItOawm7AuSfii_tCkLyspL6Mr0ATlO6OxLNYOo
746fd0ea74 Added a comment 2013-09-20 11:29:04 +00:00
Joey Hess
7fdc8311f6 note 2013-09-20 00:04:37 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnSenxKyE_2Z6Wb-EBMO8FciyRywjx1ZiQ
48e517ddf9 Added a comment 2013-09-20 02:41:22 +00:00
Joey Hess
9be7762bdb Merge branch 'master' of ssh://git-annex.branchable.com 2013-09-19 21:42:24 -04:00
Joey Hess
55636bf92f list --allrepos 2013-09-19 21:42:03 -04:00
http://joeyh.name/
7c1c2d25b0 Added a comment 2013-09-20 00:15:07 +00:00
Joey Hess
51d5c1d032 remove possibly confusing mention of git commit -a in sync documentation
http://git-annex.branchable.com/forum/git-annex_pre-commit_eats_all_my_4GB_of_ram/#comment-f7523e3779794a03680dbf48a488abc0
2013-09-19 20:13:58 -04:00
Joey Hess
5256ed462c Merge branch 'master' of ssh://git-annex.branchable.com 2013-09-19 20:10:59 -04:00
Joey Hess
3588729f0d completely solve catKey memory leak
Since 006cf7976f was incomplete, not being
able to get the right mode of the file when the index differs from HEAD,
this is a final workaround. Only buffering the start of the file
in this case avoids leaking memory.

This does not prevent git-cat-file being asked to output the whole file,
which needs to be consumed, and can be slow. But this only happens in a
rare edge case.
2013-09-19 20:09:03 -04:00
ringprince
24ce78a8a4 Added a comment 2013-09-19 22:27:38 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnSenxKyE_2Z6Wb-EBMO8FciyRywjx1ZiQ
882b076792 Added a comment 2013-09-19 22:22:03 +00:00
Joey Hess
26cb834eab devblog 2013-09-19 17:10:49 -04:00