]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
directories: make initialization of the download cache lazy
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 8 Jul 2009 00:40:40 +0000 (17:40 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 8 Jul 2009 00:40:40 +0000 (17:40 -0700)
commitc0d1e7deaec145d6eeb24358417967a901c3841e
tree226b47548814918e11390c539d1193c70f392edd
parent903005a52830ba964583fb0c871c7bbf336770cb
directories: make initialization of the download cache lazy
If you open up a directory containing thousands of files, it currently computes the cache filename and checks for the cache file on disk immediately for each immutble file in that directory.  With this patch, it delays those steps until you try to do something with an immutable file that could use the cache.
src/allmydata/client.py
src/allmydata/immutable/filenode.py