Rev 2498: Fix up the benchmarks (bench_knit.py) for the new function locations. in http://bzr.arbash-meinel.com/branches/bzr/0.17-dev/knit_index_pyrex
John Arbash Meinel
john at arbash-meinel.com
Fri Jun 29 01:40:56 BST 2007
At http://bzr.arbash-meinel.com/branches/bzr/0.17-dev/knit_index_pyrex
------------------------------------------------------------
revno: 2498
revision-id: john at arbash-meinel.com-20070629003908-0u62qx1u883o81pw
parent: john at arbash-meinel.com-20070629003100-xthewxf3hpdes9ix
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: knit_index_pyrex
timestamp: Thu 2007-06-28 19:39:08 -0500
message:
Fix up the benchmarks (bench_knit.py) for the new function locations.
I see something between 2-3x faster for reading .kndx files.
modified:
bzrlib/benchmarks/bench_knit.py bench_knit.py-20070509145850-pan5jnd3hl7mfdya-1
-------------- next part --------------
=== modified file 'bzrlib/benchmarks/bench_knit.py'
--- a/bzrlib/benchmarks/bench_knit.py 2007-05-09 18:45:20 +0000
+++ b/bzrlib/benchmarks/bench_knit.py 2007-06-29 00:39:08 +0000
@@ -65,14 +65,16 @@
def reset():
knit._load_data = orig
self.addCleanup(reset)
- knit._load_data = knit._load_data_c
+ from bzrlib._knit_load_data_c import _load_data_c
+ knit._load_data = _load_data_c
def setup_load_data_py(self):
orig = knit._load_data
def reset():
knit._load_data = orig
self.addCleanup(reset)
- knit._load_data = knit._load_data_py
+ from bzrlib._knit_load_data_py import _load_data_py
+ knit._load_data = _load_data_py
def test_read_50k_index_c(self):
self.setup_load_data_c()
More information about the bazaar-commits
mailing list