Java object allocation and deallocation is cheap

Feb 18, 2004 20:22 · 58 words · 1 minute read

I missed this one a couple weeks ago, but Gavin King brought it up in the context of evil finalizers. Java theory and practice: Garbage collection and performance talks about how modern JVMs perform allocation and deallocation of objects and how it’s cheap, so you really shouldn’t make your programs harder to read for anticipated GC-related performance gains.