|
|
|
|
|
by zelos
1094 days ago
|
|
For short lived objects, heap allocation is probably about as fast as allocating on the stack. By pooling you can end up moving objects out of the fast eden space into older generations. I worked on optimising a java library a few years back and one of the bigger speed ups was removing all the object pooling code. |
|