]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/test/bench_dirnode.py
Modify bench_dirnode.py to use CachingDict.
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / test / bench_dirnode.py
index 68011c6fa7291674fe2c6497e58fa781a06d19d4..e5f969a6cdc492fd5a02cc0a2a120a6ad70da635 100644 (file)
@@ -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)