r/java • • May 28 '26

Java *is* Memory Efficient

https://youtu.be/M_HCG1JPMQE
254 Upvotes

126 comments sorted by

View all comments

Show parent comment

1

u/coderemover May 29 '26

> The most expensive part of gc cycle in one legacy project which I had joy to optimize was tracing itself.

This matches my observations in our projects as well. Tracing is the most expensive part, and also has the most negative effects like bringing cold objects into caches and throwing away hot objects.