Modify bench_dirnode.py to use CachingDict.

This commit is contained in:
kevan 2009-07-05 15:31:42 -07:00
parent 325793457d
commit 44c652fbbe

View 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)