[JAVA-4628] Lock free buffer pool Created: 25/May/22  Updated: 28/Oct/23  Resolved: 31/May/22

Status: Closed
Project: Java Driver
Component/s: Internal, Performance
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed

 Description   

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.



 Comments   
Comment by Githook User [ 31/May/22 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Optimize PowerOfTwoBufferPool (#940)

JAVA-4628
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/83ebe3c75af787f0f83897f31a50abf08d2cf087

Generated at Thu Feb 08 09:02:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.