Skip to content

Commit

Permalink
Reduce heap size and gradle parallelism settings
Browse files Browse the repository at this point in the history
  • Loading branch information
valldrac committed Nov 9, 2023
1 parent ec0e9a1 commit 8af6ea5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ subprojects {

// MOLLY: Prevent memory starvation in parallel execution
def limiterService = gradle.sharedServices.registerIfAbsent("concurrencyConstraint", BuildService.class) {
it.maxParallelUsages.set(2)
it.maxParallelUsages.set(1)
}

//noinspection UnnecessaryQualifiedReference
Expand Down Expand Up @@ -104,8 +104,6 @@ task qa {

task clean(type: Delete) {
delete rootProject.buildDir
// Because gradle is weird, we delete here for glide-webp/lib project so the clean tasks there doesn't barf
delete fileTree("glide-webp/lib/.cxx")
}

task format {
Expand All @@ -121,4 +119,4 @@ task format {
dependencyList.add(0, gradle.includedBuild('build-logic').task(':tools:ktlintFormat'))

dependsOn dependencyList
}
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
org.gradle.jvmargs=-Xmx6g -XX:+UseParallelGC
kotlin.daemon.jvmargs=-Xmx5g -XX:+UseG1GC
org.gradle.jvmargs=-Xmx5g -XX:+UseParallelGC
kotlin.daemon.jvmargs=-Xmx6g -XX:+UseG1GC
org.gradle.parallel=true
android.useAndroidX=true
android.enableJetifier=true
Expand Down

0 comments on commit 8af6ea5

Please sign in to comment.