~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_osutils.py

Optimize Tree._iter_changes with specific file_ids

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 by Canonical Ltd
 
1
# Copyright (C) 2006 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
 
# it under the terms of the GNU General Public License version 2 as published by
5
 
# the Free Software Foundation.
 
4
# it under the terms of the GNU General Public License as published by
 
5
# the Free Software Foundation; either version 2 of the License, or
 
6
# (at your option) any later version.
6
7
#
7
8
# This program is distributed in the hope that it will be useful,
8
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
24
25
 
25
26
    def test_walkdirs_kernel_like_tree(self):
26
27
        """Walking a kernel sized tree is fast!(150ms)."""
27
 
        self.make_kernel_like_tree()
 
28
        self.make_kernel_like_tree(link_working=True)
28
29
        # on roberts machine: this originally took:  157ms/4177ms
29
30
        # plain os.walk takes 213ms on this tree
30
31
        def dowalk():