Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Unified Diff: lib/src/analyzer/context.dart

Issue 2059253003: Use trackCacheDependencies for performance speedup (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pubspec.lock » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/analyzer/context.dart
diff --git a/lib/src/analyzer/context.dart b/lib/src/analyzer/context.dart
index 2bb9f7b2abce953c161c76f093371bc53e11ecd8..945e29d53b1e67d847dca26f266913a701a57fc0 100644
--- a/lib/src/analyzer/context.dart
+++ b/lib/src/analyzer/context.dart
@@ -142,7 +142,9 @@ AnalysisContext createAnalysisContextWithSources(AnalyzerOptions options,
/// Creates an analysis context that contains our restricted typing rules.
AnalysisContextImpl createAnalysisContext() {
var res = AnalysisEngine.instance.createAnalysisContext();
- res.analysisOptions = new AnalysisOptionsImpl()..strongMode = true;
+ res.analysisOptions = new AnalysisOptionsImpl()
+ ..strongMode = true
+ ..trackCacheDependencies = false;
return res;
}
@@ -188,7 +190,9 @@ DirectoryBasedDartSdk _createDirectoryBasedDartSdk(String sdkPath) {
var sdk = new DirectoryBasedDartSdk(
new JavaFile(sdkPath), /*useDart2jsPaths:*/ true);
sdk.useSummary = true;
- sdk.analysisOptions = new AnalysisOptionsImpl()..strongMode = true;
+ sdk.analysisOptions = new AnalysisOptionsImpl()
+ ..strongMode = true
+ ..trackCacheDependencies = false;
Jennifer Messerly 2016/06/13 18:21:11 Not sure if this matters for SDK context?
scheglov 2016/06/13 18:23:28 SDK context results are served from summary, and w
return sdk;
}
« no previous file with comments | « no previous file | pubspec.lock » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698