Bug 912846 - Bump pymake parser MRU cache to 50 items. r=gps
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 05 Sep 2013 15:10:33 +0900
changeset 350 0e8c0eada030cb869416950508ab8d28d159ecf9
parent 349 2aaad4a880f9b1b21c6f7fe9662dbd1682a7f970
child 351 2b0f505e953c8c55b7c96030b016cba2d193b7e7
push id223
push usermh@glandium.org
push dateWed, 11 Sep 2013 23:23:02 +0000
reviewersgps
bugs912846
Bug 912846 - Bump pymake parser MRU cache to 50 items. r=gps
pymake/parser.py
--- a/pymake/parser.py
+++ b/pymake/parser.py
@@ -356,17 +356,17 @@ def _parsefile(pathname):
 def _checktime(path, stmts):
     mtime = os.path.getmtime(path)
     if mtime != stmts.mtime:
         _log.debug("Re-parsing makefile '%s': mtimes differ", path)
         return False
 
     return True
 
-_parsecache = util.MostUsedCache(15, _parsefile, _checktime)
+_parsecache = util.MostUsedCache(50, _parsefile, _checktime)
 
 def parsefile(pathname):
     """
     Parse a filename into a parserdata.StatementList. A cache is used to avoid re-parsing
     makefiles that have already been parsed and have not changed.
     """
 
     pathname = os.path.realpath(pathname)