[Bug 3866] New: os.rmdir is apparently shockingly expensive on large non-empty trees

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Sun Mar 24 04:47:06 CDT 2013


http://bz.selenic.com/show_bug.cgi?id=3866

          Priority: normal
            Bug ID: 3866
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: os.rmdir is apparently shockingly expensive on large
                    non-empty trees
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: sid0 at fb.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: unspecified
         Component: Mercurial
           Product: Mercurial

STR:
1. Start off with a large tree (170,000 files should be a good number).
2. (in the root directory) touch foo; hg add foo; hg ci -m "foo"
3. hg up .^ --profile 

posix.rmdir, via removedirs at
<http://selenic.com/repo/hg/file/a07be8953733/mercurial/posix.py#l472> shows up
for me as taking around 0.1 seconds. That's insane.

I've been able to reproduce this on two different systems, my laptop running
Ubuntu 12.04/Python 2.7 and a server running CentOS 5.2/Python 2.6. Both are on
ext4.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list