mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 08:45:46 +00:00
53e3dc9ef2
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 |
||
---|---|---|
.. | ||
dumbmake | ||
mozbuild | ||
mozpack | ||
setup.py | ||
TODO |