]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Modify bench_dirnode.py to use CachingDict.
authorkevan <kevan@isnotajoke.com>
Sun, 5 Jul 2009 22:31:42 +0000 (15:31 -0700)
committerkevan <kevan@isnotajoke.com>
Sun, 5 Jul 2009 22:31:42 +0000 (15:31 -0700)
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)