Facebook explains how they worked on Mercurial and what they changed to provide good performance for a big, high activity repository: https://code.facebook.com/posts/218678814984400/scaling-mercurial-at-facebook Thomas