changeset 4974:a335345100ba

revlog: set the threshold for lazy parsing higher A typical machine can parse a 1MB index in well under a second
author Matt Mackall <mpm@selenic.com>
date Mon, 23 Jul 2007 20:44:08 -0500
parents a386a6e4fe46
children 8b7e480a7603
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)