gecko-dev/python/mozbuild/mozpack
Gregory Szorc 53e3dc9ef2 Bug 1134800 - Properly cache file matching patterns; r=glandium
The regular expression cache for mozpack.path.match was keyed off the
original pattern. However, that variable was mutated as part of the
function and the mutated result was subsequently stored as the cache
key. This effectively resulted in a 0% cache hit rate.

On some tests being written for bug 1132111 which involve a full
filesystem traversal for moz.build files and subsequent execution of
those files, the following timings are indicative of the impact of this
patch.

Before:
real 16.082s
user 14.760s
sys   1.318s

After:
real 6.345s
user 5.085s
sys  1.257s

--HG--
extra : rebase_source : caf4a9f37fda9b43b444059f647535e1b085d422
2015-02-24 10:19:41 -08:00
..
chrome Bug 930243 - Add a processType flag to chrome manifest directives (r=froydnj) 2014-10-07 11:46:24 -07:00
packager Bug 935305 - Move preprocessor to mozbuild.action. r=gps 2013-11-09 10:35:44 +09:00
test Bug 1061684 - Normalize path separators in JAR paths; r=mshal 2014-09-03 10:42:34 -07:00
__init__.py
copier.py Bug 971525 - Optionally make FileCopier only delete symlinked directories it needs to replace. r=gps 2014-02-13 22:19:48 -08:00
errors.py Bug 835309 - Look at .xpi file contents when unifying them for universal builds. r=gps 2013-02-03 07:19:15 +01:00
executables.py Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg 2014-02-10 17:57:01 -05:00
files.py Bug 1109409 - improve mozpack.BaseFile.copy() performance on Windows; r=gps 2014-12-12 11:59:24 -05:00
manifests.py Bug 1058036 - Ensure dependency isn't lost when ORing InstallManifest; r=glandium 2014-08-24 20:19:55 -04:00
mozjar.py Bug 1061684 - Normalize path separators in JAR paths; r=mshal 2014-09-03 10:42:34 -07:00
path.py Bug 1134800 - Properly cache file matching patterns; r=glandium 2015-02-24 10:19:41 -08:00
unify.py Bug 835214 - Avoid re-stripping executables already stripped. r=ted 2013-02-03 07:20:33 +01:00