Since my last update I've made some performance improvements and made
my composite object pool both serializable and cloneable.

I've  improved the construction so that the internal List that holds
idle objects is either an ArrayList or a LinkedList based on which
will give the best performance. An ArrayList is used when the max
number of idle object is small (under 10) or when the pool is a LIFO.
When it makes sense to use an ArrayList it can improve the composite
object pool performance by as much as 7% compared to only using
LinkedLists which is cool.

When implementing Serializable and Cloneable I decided it doesn't make
sense for deserialized/cloned instances to share or have a copy of
active or idle objects. This limits these features to little more than
a method to save a object pool's configuration or as a way to acquire
a similarly configured object pool.

I can currently think of no other improvements to the implementation.
Feedback welcomed. I'm just waiting on my employer's lawyers before
the code can go into the incubator.

As before you can get the current code at: http://Sandy.McArthur.org/pool/

--
Sandy McArthur

"He who dares not offend cannot be honest."
- Thomas Paine

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to