# HG changeset patch # User Matt Mackall # Date 1185241448 18000 # Node ID a335345100ba4bf1515033d082326a28a7cde786 # Parent a386a6e4fe46b3037b7aeebce61f9b1c0f38932b revlog: set the threshold for lazy parsing higher A typical machine can parse a 1MB index in well under a second diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -319,7 +319,7 @@ class revlogio(object): def parseindex(self, fp, st, inline): if (lazyparser.safe_to_use and not inline and - st and st.st_size > 10000): + st and st.st_size > 1000000): # big index, let's parse it on demand parser = lazyparser(fp, st.st_size, indexformatng, ngshaoffset) index = lazyindex(parser)