C
C
click_f2016-12-28 16:58:53
Java
click_f, 2016-12-28 16:58:53

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

1 answer(s)
D
Dmitry Zaitsev, 2016-12-28
@click_f

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 question

Ask a Question

731 491 924 answers to any question