summaryrefslogtreecommitdiff
path: root/speed-test
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-02-23 15:01:26 +0000
committerLars Wirzenius <liw@liw.fi>2011-02-23 15:01:26 +0000
commit678c1be35b6cb7a33def6389351157b1aa010822 (patch)
treee17210a5daf74548333af402b4231e105cf2be23 /speed-test
parent6849f2a2ce7c12cb55a64b93775704a2f491817e (diff)
downloadlarch-678c1be35b6cb7a33def6389351157b1aa010822.tar.gz
Change the forest factory to be a function, instead.
No point in a class, since every call needs all parameters anyway.
Diffstat (limited to 'speed-test')
-rwxr-xr-xspeed-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/speed-test b/speed-test
index b14b95c..599ed18 100755
--- a/speed-test
+++ b/speed-test
@@ -74,7 +74,7 @@ class SpeedTest(cliapp.Application):
if os.path.exists(location):
raise Exception('%s exists already' % location)
os.mkdir(location)
- ns = btree.NodeStoreDisk(location, node_size, codec)
+ ns = btree.NodeStoreDisk(node_size, codec, dirname=location)
forest = btree.Forest(ns)
tree = forest.new_tree()