projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3257934
)
Modify bench_dirnode.py to use CachingDict.
author
kevan
<kevan@isnotajoke.com>
Sun, 5 Jul 2009 22:31:42 +0000
(15:31 -0700)
committer
kevan
<kevan@isnotajoke.com>
Sun, 5 Jul 2009 22:31:42 +0000
(15:31 -0700)
src/allmydata/test/bench_dirnode.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/bench_dirnode.py
b/src/allmydata/test/bench_dirnode.py
index 68011c6fa7291674fe2c6497e58fa781a06d19d4..e5f969a6cdc492fd5a02cc0a2a120a6ad70da635 100644
(file)
--- 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(di
rnode.CachingDi
ct(children[:N]))
def unpack(N):
return testdirnode._unpack_contents(packstr)