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