Answer the question
In order to leave comments, you need to log in
When should you use object pooling?
As far as I understand, this technique is outdated, but in some places I still find advice like "but it's generally possible."
The question is: how exactly to understand what exactly this technique should be used and whether it is worth paying attention to it at all?
Are there any faster counterparts?
Answer the question
In order to leave comments, you need to log in
In my experience, the JVM is great at optimizing object pools already at the VM level, if you pull to reuse old objects, then most likely it can be even slower, at best also fast.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question