Is Parallel still the suggested GC to use with Gra...
# community-support
e
Is Parallel still the suggested GC to use with Gradle?
👀 1
v
I'm curious, where was it suggested? I'd expect it to be like always, depending on what you execute exactly.
e
GradleDoctor warns when you are not using it and Google suggests it as well for Android (https://developer.android.com/build/optimize-your-build#experiment-with-the-jvm-parallel-garbage-collector). I found this Gradle issue asking about making parallel GC the default. I'm pretty sure that I previously found something from Gradle docs mentioning this, but I can't find it now. However Java has been making faster progress the past few years, so I was wondering if this advice was still the best, or if one of the newer GCs like G1GC or ZGC are better. I know that profiling is the best for specific circumstances, but I'm asking in a general sense.
v
I don't think it can be answered in a general sense though. I grepped through the whole Gradle Git history for "UseParallelGC" and it was never recommended in the Gradle docs. And as Adam mentions in the last comment on the issue you linked to, they did measure and even within Android projects it made some scenarios faster and some slower which is why they neither use it as default, nor recommend it.
So you probably has to ask Android and Gradle Doctor maintainers whether they still recommend using that GC. :-)
😅 1