[JAVA-198] DBApiLayer._cleanCursors(): reduce need for synchronization Created: 22/Oct/10  Updated: 29/Oct/10  Resolved: 25/Oct/10

Status: Closed
Project: Java Driver
Component/s: Performance
Affects Version/s: 2.2
Fix Version/s: 2.3

Type: Improvement Priority: Major - P3
Reporter: Christoph Preissner Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

all



 Description   

added double check pattern in order to avoid synchronization on every method call;
replaced Vector by LinkedList



 Comments   
Comment by auto [ 25/Oct/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: dead cursor sync cleaning JAVA-198
http://github.com/mongodb/mongo-java-driver/commit/60cf3615d5b98a8ec1e90d955360572ac4367b9b

Comment by Christoph Preissner [ 22/Oct/10 ]

http://github.com/Chr1st0ph/mongo-java-driver/commit/9887301da9cf43d94ac885314e8f79e4e605b464
http://github.com/Chr1st0ph/mongo-java-driver/commit/0f7e4a544073bf4d94e7b6074bea23bb49b2114c

Generated at Thu Feb 08 08:51:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.