Skip to main content

Adam Bien: Object Pooling Can Be Still Useful - For Entirely Different Reasons

Adam Bien writes that Object Pooling Can Be Still Useful - For Entirely Different Reasons:

Pooling was initially introduced as a tuning action for the slow performance of object creation and garbage collection in particular. On a modern JVM > 1.4 pooling is no more needed for the optimization of memory management in a typical business application. It can even have a negative effect on the garbage collector performance. In special cases, like creating millions of instances in every method call, it could still pay off...

Community: Java Enterprise