commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Steijn" <pste...@gmail.com>
Subject Re: [pool] Proposal: New Pool Impl -- GeneratorObjectPool
Date Sat, 01 Apr 2006 14:16:30 GMT
>
> Also, I don't think it saves any time if you create the pool and then
> immediately extract an object from the pool, so that would need to be
> documented.
>
> Stephen
>
> The act of creating an object when you hit an empty object pool is
important to grow the pool size even if you are not the requestor that
eventually utilizes that object.

You are correct, if there are no objects returned to the pool (like when you
have a fresh pool), then you get no performance improvement.  However, you
get no performance hit either.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message