[patch] fix imports for benchmark suite

Martin Pool mbp at canonical.com
Wed Oct 25 02:59:46 BST 2006


The benchmarks currently fail because of a problem with lazy imports.
This fixes it.

Also, they're currently way too slow because one of the bundle
benchmarks uses a too-ambitious test data set.  We should scale that
back until we're faster, I'll send a patch later.

-- 
Martin
-------------- next part --------------
# Bazaar revision bundle v0.8
#
# message:
#   Fix lazy-import problem in bench_bundle
# committer: Martin Pool <mbp at sourcefrog.net>
# date: Tue 2006-10-24 15:24:42.038000107 +0800

=== modified file bzrlib/benchmarks/bench_bundle.py
--- bzrlib/benchmarks/bench_bundle.py
+++ bzrlib/benchmarks/bench_bundle.py
@@ -24,9 +24,8 @@
 from bzrlib.add import smart_add
 from bzrlib.benchmarks import Benchmark
 from bzrlib.branch import Branch
-from bzrlib.bundle import read_bundle
 from bzrlib.bundle.apply_bundle import install_bundle
-from bzrlib.bundle.serializer import write_bundle
+from bzrlib.bundle.serializer import read_bundle, write_bundle
 from bzrlib.revision import NULL_REVISION
 from bzrlib.revisionspec import RevisionSpec
 from bzrlib.workingtree import WorkingTree

=== modified directory  // last-changed:mbp at sourcefrog.net-20061024072442-72963
... 18ffce4d499
# revision id: mbp at sourcefrog.net-20061024072442-7296318ffce4d499
# sha1: 573d211479817c23d366b6f034f0a47f4f1b540d
# inventory sha1: 9ae8279deda377bb0f428dbc97bf5db828e29be5
# parent ids:
#   pqm at pqm.ubuntu.com-20061023225407-f38e787ee5e79957
# base id: pqm at pqm.ubuntu.com-20061023225407-f38e787ee5e79957
# properties:
#   branch-nick: benchmark-imports



More information about the bazaar mailing list