mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 14:52:26 +00:00
Modify bench_dirnode.py to use CachingDict.
This commit is contained in:
parent
325793457d
commit
44c652fbbe
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user