diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-02-23 15:01:26 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-02-23 15:01:26 +0000 |
commit | 678c1be35b6cb7a33def6389351157b1aa010822 (patch) | |
tree | e17210a5daf74548333af402b4231e105cf2be23 /speed-test | |
parent | 6849f2a2ce7c12cb55a64b93775704a2f491817e (diff) | |
download | larch-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-x | speed-test | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |