Commit Graph
5 Commits
Author SHA1 Message Date
Gregory Szorc 9865b6f0c9 Bug 1176642 - Use absolute_import in mozpack; r=glandium 2015-06-25 12:13:55 -07:00
Gregory Szorc 6e66aefeb5 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
2015-02-24 10:19:41 -08:00
Mike Hommey acfa733d9c Bug 948275 - Use mozpack.path instead of os.path in mozbuild.frontend and mozbuild.backend modules. r=gps 2013-12-11 15:20:31 +09:00
Mike Hommey 92820ad3ba Bug 893976 - Use (cached) regular expressions for mozpack.path.match. r=gps 2013-07-30 08:57:27 +09:00
Mike Hommey fc89f708a6 Bug 780561 - Import new packager code. r=gps 2013-01-23 11:23:14 +01:00