From: kevan Date: Sun, 5 Jul 2009 22:31:42 +0000 (-0700) Subject: Modify bench_dirnode.py to use CachingDict. X-Git-Url: https://git.rkrishnan.org/(%5B%5E?a=commitdiff_plain;h=44c652fbbe0f70794c514ae9962ad0694764cfd9;p=tahoe-lafs%2Ftahoe-lafs.git Modify bench_dirnode.py to use CachingDict. --- diff --git a/src/allmydata/test/bench_dirnode.py b/src/allmydata/test/bench_dirnode.py index 68011c6f..e5f969a6 100644 --- a/src/allmydata/test/bench_dirnode.py +++ b/src/allmydata/test/bench_dirnode.py @@ -78,7 +78,7 @@ def init_for_unpack(N): packstr = pack(N) def pack(N): - return testdirnode._pack_contents(dict(children[:N])) + return testdirnode._pack_contents(dirnode.CachingDict(children[:N])) def unpack(N): return testdirnode._unpack_contents(packstr)