Comment on Performance of modern Java on data-heavy workloadsparentComments−shellac6yOn G1 you used to be able to use `-XX:+UseStringDeduplication`, which gives you back something like the string sharing used pre-whatever it was (8?).−this_user6yIf you are looking to do low latency, then G1 isn't the best choice these days, though. Shenandoah or ZGC are both more advanced algorithms that can greatly reduce the pauses caused by GC activity.−ec1096856yThe article compares garbage collectors and with its workloads, Shenandoah had worse throughput, so it depends.−nicktelford6yThat appears to still be an option, see the last line of: https://docs.oracle.com/en/java/javase/14/gctuning/garbage-f...
Comments
On G1 you used to be able to use `-XX:+UseStringDeduplication`, which gives you back something like the string sharing used pre-whatever it was (8?).
If you are looking to do low latency, then G1 isn't the best choice these days, though. Shenandoah or ZGC are both more advanced algorithms that can greatly reduce the pauses caused by GC activity.
The article compares garbage collectors and with its workloads, Shenandoah had worse throughput, so it depends.
That appears to still be an option, see the last line of: https://docs.oracle.com/en/java/javase/14/gctuning/garbage-f...