~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_bench.py

Add a new method ``Tree.revision_tree`` which allows access to cached
trees for arbitrary revisions. This allows the in development dirstate
tree format to provide access to the callers to cached copies of 
inventory data which are cheaper to access than inventories from the
repository. (Robert Collins, Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        # on roberts machine: this originally took:  7372ms/ 7479ms
35
35
        # with the LocalTransport._abspath call:     3730ms/ 3778ms
36
36
        # with AtomicFile tuning:                    2888ms/ 2926ms
37
 
        # switching to transport.append:             1468ms/ 2849ms
 
37
        # switching to transport.append_bytes:       1468ms/ 2849ms
38
38
        self.time(self.make_kernel_like_tree)
39
39
 
40
40
    def test_02_make_kernel_like_tree(self):