Skip to content

Commit 0256155

Browse files
jakemac53commit-bot@chromium.org
authored andcommitted
Increase analyzer cache size to 512MB.
I noticed earlier today that the cache looks to be to small for large internal apps, causing us to constantly reload summaries. This change fixes that, reducing build times significantly for large apps. There is a larger issue here of the actual cache implementation though that should likely get resolved. We end up with several versions of each summary file in the cache until it fills up, so we will fill up the cache even on small apps today. It is possible we should change how that works, instead of increasing this. Fwiw, I see total ram consumption of almost exactly 1GB per worker after this change. Change-Id: I0d8a06da72b86d44562819bc04f5ae5543610f0d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107360 Reviewed-by: Konstantin Shcheglov <[email protected]> Reviewed-by: David Morgan <[email protected]> Commit-Queue: Jake Macdonald <[email protected]>
1 parent 9329d9d commit 0256155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analyzer_cli/lib/src/build_mode.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class AnalyzerWorkerLoop extends AsyncWorkerLoop {
6262
{this.dartSdkPath})
6363
: super(connection: connection) {
6464
packageBundleCache = new WorkerPackageBundleCache(
65-
resourceProvider, logger, 256 * 1024 * 1024);
65+
resourceProvider, logger, 512 * 1024 * 1024);
6666
}
6767

6868
factory AnalyzerWorkerLoop.sendPort(

0 commit comments

Comments
 (0)