equal
deleted
inserted
replaced
317 def __init__(self): |
317 def __init__(self): |
318 self.chunkcache = None |
318 self.chunkcache = None |
319 |
319 |
320 def parseindex(self, fp, st, inline): |
320 def parseindex(self, fp, st, inline): |
321 if (lazyparser.safe_to_use and not inline and |
321 if (lazyparser.safe_to_use and not inline and |
322 st and st.st_size > 10000): |
322 st and st.st_size > 1000000): |
323 # big index, let's parse it on demand |
323 # big index, let's parse it on demand |
324 parser = lazyparser(fp, st.st_size, indexformatng, ngshaoffset) |
324 parser = lazyparser(fp, st.st_size, indexformatng, ngshaoffset) |
325 index = lazyindex(parser) |
325 index = lazyindex(parser) |
326 nodemap = lazymap(parser) |
326 nodemap = lazymap(parser) |
327 e = list(index[0]) |
327 e = list(index[0]) |