News for hackers. Stuff that matters.
Re:Java 12 by kartickv on Tuesday March 19, 2019 @10:17PM (#19438287)
Is there a guide to the various GC algorithms? Suppose I'm running an app where pause times don't matter, and I want throughout or reduced memory usage. How much more of this will I get by switching to another GC algorithm? 2%? 20%? 40%?
Re:Java 12 by pjmlp on Wednesday March 20, 2019 @07:38AM (#19441067)
Mostly profiling.

Each JVM implementation (Azul, IBM, OpenJDK, PTC, Aicas,...) has their own collection of GC algorithms.

And their behaviour depends pretty much on the application as well.

Re:Java 12 by kartickv on Thursday March 21, 2019 @09:28AM (#19452032)
Thanks. I understand that the numbers require profiling to determine, but I wish there was at least a high-level guide like:

Do you want to optimise pause times? Use X. Optimise throughput without regard to pause times? Use Y. Optimise memory use? Use Z.

It may not be accurate in every case (no guideline is), but it would be a good starting point for the vast majority of us who don't know the pros and cons of various collectors.