Categories
Mercurial Performance

Speeding up Mercurial

Just a reminder:  Mercurial repository clones get slower over time.  It’s worth deleting and recloning every so often.

For example, I had one old repository that I’d done a lot of work in and updated many times.  It had a patch queue containing a single patch. I tried doing hg qdiff four times in a row. The first one took 65 seconds, and the next three each took 16 seconds.

I deleted the repository, re-cloned, re-applied the patch, and hg qdiff now takes 1 second. Much better.

6 replies on “Speeding up Mercurial”

I’m using 1.9.1 and created the repo with that version, so that shouldn’t be relevant, judging from that link.

I guess disk fragmentation is at least part of the story.

Comments are closed.