From 2b9e3d5ca89f88fbcae237270e95c592e3ce3bc1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 25 Jul 2014 16:09:23 -0400 Subject: use same hash directories for chunked key as are used for its parent This avoids a proliferation of hash directories when using new-style chunking, and should improve performance since chunks are accessed in sequence and so should have a common locality. Of course, when a chunked key is encrypted, its hash directories have no relation to the parent key. This commit was sponsored by Christian Kellermann. --- doc/internals/hashing.mdwn | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/internals/hashing.mdwn') diff --git a/doc/internals/hashing.mdwn b/doc/internals/hashing.mdwn index cc4bc6456..bdc259b63 100644 --- a/doc/internals/hashing.mdwn +++ b/doc/internals/hashing.mdwn @@ -36,3 +36,8 @@ string, but where that would normally encode the bits using the 16 characters 0-9a-f, this instead uses the 32 characters "0123456789zqjxkmvwgpfZQJXKMVWGPF". The first 2 letters of the resulting string are the first directory, and the second 2 are the second directory. + +## chunk keys + +The same hash directory is used for a chunk key as would be used for the +key that it's a chunk of. -- cgit v1.2.3