Chromium Code Reviews| Index: pkg/analyzer/lib/src/analyzer_impl.dart |
| diff --git a/pkg/analyzer/lib/src/analyzer_impl.dart b/pkg/analyzer/lib/src/analyzer_impl.dart |
| index a2b11514341e4fc7282f00c827562f2c5c8fe6f3..d7fea226d923f4e260c1af47cd204a6aa9217674 100644 |
| --- a/pkg/analyzer/lib/src/analyzer_impl.dart |
| +++ b/pkg/analyzer/lib/src/analyzer_impl.dart |
| @@ -18,6 +18,10 @@ import 'generated/ast.dart'; |
| import 'generated/element.dart'; |
| import '../options.dart'; |
| +/** |
| + * The maximum number of sources for which AST structures should be kept in the cache. |
| + */ |
| +const int _MAX_CACHE_SIZE = 256; |
|
clayberg
2014/03/11 20:23:16
256 or 512?
scheglov
2014/03/11 20:29:25
Oops, fixed.
|
| DartSdk sdk; |
| @@ -107,7 +111,7 @@ class AnalyzerImpl { |
| // set options for context |
| AnalysisOptionsImpl contextOptions = new AnalysisOptionsImpl(); |
| - contextOptions.cacheSize = 256; |
| + contextOptions.cacheSize = _MAX_CACHE_SIZE; |
| contextOptions.hint = !options.disableHints; |
| context.analysisOptions = contextOptions; |
| } |