-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal, Performance
-
None
-
Fully Compatible
-
Not Needed
com.mongodb.internal.connection.PowerOfTwoBufferPool currently users com.mongodb.internal.connection.ConcurrentPool to implement its pooling behavior. ConcurrentPool has synchronization overhead that is unnecessary based on PowerofTwoBufferPool's usage of it. We can improve the efficiency of PowerOfTwoBufferPool by replacing it's use of ConcurrentPool with direct usage of ConcurrentLinkedDeque.