~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-09-03 06:31:11 UTC
  • mfrom: (1739.2.12 readdir)
  • Revision ID: pqm@pqm.ubuntu.com-20080903063111-jr3ru4gv44xkwl2l
(robertc) Stat the contents of directories in inode order. (Robert
        Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        self.make_kernel_like_tree(link_working=True)
30
30
        # on roberts machine: this originally took:  157ms/4177ms
31
31
        # plain os.walk takes 213ms on this tree
 
32
        # with the pyrex readdir module:              77ms/5423ms
32
33
        def dowalk():
33
34
            for dirblock in osutils.walkdirs('.'):
34
35
                if dirblock[0][1] == '.bzr':