Object pool optimisations. Sometimes Java will be creating too many similar objects. Instead of doing this is it possible to add an object pooling mechanism.
The JVM/Hotspot specialists advise against object pooling on modern JVMs. In any case, it seems very hard to apply such an optimization automatically, since the optimizer would have to add its own tracking mechanism to find dead objects.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The JVM/Hotspot specialists advise against object pooling on modern JVMs. In any case, it seems very hard to apply such an optimization automatically, since the optimizer would have to add its own tracking mechanism to find dead objects.