Increase AST cache size to improve performance for large projects

In the test I tried using dartanalyzer, it reduces the
execution time from 170 seconds to 102 seconds.

BUG=
R=scheglov@google.com

Review URL: https://codereview.chromium.org/1841433003 .
This commit is contained in:
Brian Slesinsky
2016-03-28 13:53:38 -07:00
parent 7f145a0ad9
commit 2a41dc6734
+1 -1
View File
@@ -46,7 +46,7 @@ import 'package:analyzer/task/model.dart';
* The [ResultCachingPolicy] for ASTs.
*/
const ResultCachingPolicy AST_CACHING_POLICY =
const SimpleResultCachingPolicy(8192, 8192);
const SimpleResultCachingPolicy(16384, 16384);
/**
* The [ResultCachingPolicy] for [Element]s.