Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The private method GenericKeyedObjectPool.ensureMinIdle(K) checks getMinIdlePerKey().
However, when called by ensureMinIdle(void), this check has already been done.
The private method is only otherwise called by preparePool(K), so the check could be moved there.
This would eliminate one extra check per key when executing the protected ensureMinIdle() method.