-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
Context
The benchmark in PYTHON-4481 shows a lot of time spent waiting in get_server_session and return_server_session. I believe this is due to contention overhead and synchronization cost on the Topology lock. We should be able to make the session pool thread safe and lock-free to avoid this bottleneck.
Definition of done
Lock-free and thread-safe session pool. Verify this results in a performance improvement.