revlog: set the threshold for lazy parsing higher
authorMatt Mackall <mpm@selenic.com>
Mon, 23 Jul 2007 20:44:08 -0500
changeset 4974 a335345100ba
parent 4973 a386a6e4fe46
child 4975 8b7e480a7603
revlog: set the threshold for lazy parsing higher A typical machine can parse a 1MB index in well under a second
mercurial/revlog.py
--- a/mercurial/revlog.py	Mon Jul 23 20:44:07 2007 -0500
+++ b/mercurial/revlog.py	Mon Jul 23 20:44:08 2007 -0500
@@ -319,7 +319,7 @@
 
     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)