Skip to content

Commit

Permalink
build(gradle): use parallel GC, allow more memory
Browse files Browse the repository at this point in the history
the parallel GC bit comes from https://developer.android.com/studio/build/optimize-your-build.html#configure-the-jvm-garbage-collector

the more memory bit is just a guess but does speed things a bit in local profiling
  • Loading branch information
mikehardy committed Oct 26, 2021
1 parent 0219af0 commit c9ab8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx3072M" -XX\:MaxPermSize\=768m -XX\:+HeapDumpOnOutOfMemoryError -Dfile.encoding\=UTF-8
org.gradle.jvmargs=-XX\:+UseParallelGC -Xmx4096M -Dkotlin.daemon.jvm.options\="-Xmx3072M" -XX\:MaxPermSize\=2048m -XX\:+HeapDumpOnOutOfMemoryError -Dfile.encoding\=UTF-8

# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
Expand Down

0 comments on commit c9ab8ad

Please sign in to comment.