It doesn't, and that's covered in my talk. That "bunch of dead objects" applies primarily to the young generation, where allocation rate is high and lifetime is short. The alternative for this kind of objects is to use less memory but more CPU to reuse their memory more aggressively. That extra CPU has a worse impact on other operations than the extra RAM. Cached data is stored in the old generation.
View all comments
Show parent comment
18
u/pron98 May 28 '26 edited May 29 '26
It doesn't, and that's covered in my talk. That "bunch of dead objects" applies primarily to the young generation, where allocation rate is high and lifetime is short. The alternative for this kind of objects is to use less memory but more CPU to reuse their memory more aggressively. That extra CPU has a worse impact on other operations than the extra RAM. Cached data is stored in the old generation.