Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
shellac
· 6y ago · 0 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?).
Comments
[–]
this_user
6y ago
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.
[–]
ec109685
6y ago
The article compares garbage collectors and with its workloads, Shenandoah had worse throughput, so it depends.
[–]
nicktelford
6y ago
That appears to still be an option, see the last line of:
https://docs.oracle.com/en/java/javase/14/gctuning/garbage-f...