From 3c9618f13f2fbbfd73b8a92c1ea51b305fe9aa7b Mon Sep 17 00:00:00 2001 From: Patrick Honkonen Date: Wed, 31 Jul 2024 18:06:11 -0400 Subject: [PATCH 1/2] Use parallel GC during builds --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 61a867353db..f40dacf1cd2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,5 +5,5 @@ android.useAndroidX=true kotlin.code.style=official org.gradle.caching=true -org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx2048m -XX:+UseParallelGC -Dfile.encoding=UTF-8 org.gradle.parallel=true From e71b2ab8718d28b40fe0cf97704528b3a9871c67 Mon Sep 17 00:00:00 2001 From: Patrick Honkonen Date: Wed, 31 Jul 2024 18:10:57 -0400 Subject: [PATCH 2/2] Fix OOM when assembling debug variants --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index f40dacf1cd2..ed4df0bfc84 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,5 +5,5 @@ android.useAndroidX=true kotlin.code.style=official org.gradle.caching=true -org.gradle.jvmargs=-Xmx2048m -XX:+UseParallelGC -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx4g -XX:+UseParallelGC -Dfile.encoding=UTF-8 org.gradle.parallel=true