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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user