H
HomerCritic
There are articles both from Sun and IBM, stating that is NOT favorable
to pool or cache objects. The newer garbage collectors have a
generational mechanism that causes new objects to get reclaimed
quicker.
I've had a fairly complex heavy image processor with many cached image
blocks. Processing would take around 30 minutes and had a lot of
pooling, where I check out buffered images and return them to the pool.
When I took out the pooling and created new ones, the performance
didn't get reduced one bit.
On a side note, the "language shootout" web page measures Java WRONG.
They don't do their tests properly.
Often Java runs actually faster than C, especially for number
crunching.
I've gotten in many arguments in the past where people were not
believing me, but I won on every occasion.
to pool or cache objects. The newer garbage collectors have a
generational mechanism that causes new objects to get reclaimed
quicker.
I've had a fairly complex heavy image processor with many cached image
blocks. Processing would take around 30 minutes and had a lot of
pooling, where I check out buffered images and return them to the pool.
When I took out the pooling and created new ones, the performance
didn't get reduced one bit.
On a side note, the "language shootout" web page measures Java WRONG.
They don't do their tests properly.
Often Java runs actually faster than C, especially for number
crunching.
I've gotten in many arguments in the past where people were not
believing me, but I won on every occasion.