From 2a41dc67346c63ea8ca545ce596b6477fa0aab2e Mon Sep 17 00:00:00 2001 From: Brian Slesinsky Date: Mon, 28 Mar 2016 13:53:38 -0700 Subject: [PATCH] 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 . --- pkg/analyzer/lib/src/task/dart.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart index b366e133906..8705dd86c47 100644 --- a/pkg/analyzer/lib/src/task/dart.dart +++ b/pkg/analyzer/lib/src/task/dart.dart @@ -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.