comparison tests/test-bundle2.t @ 21986:48166e46f111

locate: use ctx.matches instead of ctx.walk On mozilla-central, which is around 100,000 files, best of 5: $ hg --time locate > /dev/null before: real 1.460 secs (user 1.140+0.000 sys 0.320+0.000) after: real 0.620 secs (user 0.610+0.000 sys 0.020+0.000) $ hg --time locate README > /dev/null before: real 0.630 secs (user 0.330+0.000 sys 0.290+0.000) after: real 0.120 secs (user 0.110+0.000 sys 0.020+0.000) Larger repositories see correspondingly larger performance gains.
author Siddharth Agarwal <sid0@fb.com>
date Fri, 01 Aug 2014 22:16:54 -0700
parents ef555e456420
children 7986e99bb69a 1e392c63fb76
comparison
equal deleted inserted replaced
21985:7e871e771300 21986:48166e46f111