mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Memoize more things for linting performance
This commit is contained in:
@@ -236,6 +236,9 @@ var lintUnibuild = function (options) {
|
||||
});
|
||||
});
|
||||
|
||||
// bail out early if there is not much to run
|
||||
if (! allLinters.length) { return; }
|
||||
|
||||
var watchSet = new watch.WatchSet;
|
||||
var sourceItems = inputSourceArch.getSourcesFunc(sourceExtensions, watchSet);
|
||||
var wrappedSourceItems = _.map(sourceItems, function (source) {
|
||||
|
||||
@@ -1173,7 +1173,7 @@ _.extend(PackageSource.prototype, {
|
||||
sourceArch.watchSet.merge(projectWatchSet);
|
||||
|
||||
// Determine source files
|
||||
sourceArch.getSourcesFunc = function (extensions, watchSet) {
|
||||
sourceArch.getSourcesFunc = _.once(function (extensions, watchSet) {
|
||||
var sourceInclude = _.map(
|
||||
extensions,
|
||||
function (isTemplate, ext) {
|
||||
@@ -1341,7 +1341,7 @@ _.extend(PackageSource.prototype, {
|
||||
}
|
||||
|
||||
return sources;
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
if (! self._checkCrossUnibuildVersionConstraints()) {
|
||||
|
||||
Reference in New Issue
Block a user