]> arthur.barton.de Git - bup.git/commit
vfs: flatten resolution cache key
authorRob Browning <rlb@defaultvalue.org>
Sat, 7 Jul 2018 17:20:47 +0000 (12:20 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 3 Sep 2018 18:30:10 +0000 (13:30 -0500)
commitef211f804882991f4cf31af6f18ff7db291954f5
tree2a2b7601f69ca7762c526ffc1ebd0134ad64066c
parent6acbb4d025af9c4c0b9dd207c230caf688d9e812
vfs: flatten resolution cache key

This will require more storage if there are a lot of lookups with the
same parent and differing paths, but otherwise, without more
intentional structure sharing among paths, this should be better, and
we can always revisit the arrangement later.

Serializing the parent path segments should also make sure the same
parent (semantically-speaking) contributes the same hash to the key.
Previously, Metadata objects could prevent that, given their trivial,
pointer-based hashes.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/vfs.py