Hi, I made a patch for fairness feature on GenericObjectPool.
Please see https://issues.apache.org/jira/browse/POOL-75 .
This patch provides the lightweight semaphore based on maxActive
number and wraps GenericObjectPool#borrowObject().
As a result, the performance of pool is improved because there is no
overhead of notifyAll.
I know this patch still has duplicate processing for maxActive, but I
wanted to show you the effect of this patch.
So I made the simple patch like wrapping method.
I'm considering whether this approach is useful for other issues of maxActive.
Regards,
-Takayuki
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
|