[JAVA-3613] Add initial capacity to BsonDocument & BsonArray Created: 28/Jan/20  Updated: 28/Oct/23  Resolved: 15/Jun/21

Status: Closed
Project: Java Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 4.3.0

Type: New Feature Priority: Major - P3
Reporter: Ross Lawley 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   

See community PR's:



 Comments   
Comment by Githook User [ 15/Jun/21 ]

Author:

{'name': 'Gaspard Petit', 'email': 'gaspard.petit@eidosmontreal.com', 'username': 'gaspardpetit'}

Message: Allocating `BsonArray` using capacity when known

JAVA-3613

Signed-off-by: Gaspard Petit <gaspard.petit@eidosmontreal.com>
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/82e40ed6929c2b0e7dcd65f3615e10b183275b1e

Comment by Githook User [ 15/Jun/21 ]

Author:

{'name': 'Gaspard Petit', 'email': 'gaspard.petit@eidosmontreal.com', 'username': 'gaspardpetit'}

Message: Adding BsonArray constructor that allocates an ArrayList with known capacity

JAVA-3613

Signed-off-by: Gaspard Petit <gaspard.petit@eidosmontreal.com>
Co-authored-by: Jeff Yemin <jeff.yemin@mongodb.com>
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/55ca500447d2d0126f36e2fa16ba0061113785b6

Comment by Githook User [ 15/Jun/21 ]

Author:

{'name': 'Gaspard Petit', 'email': 'gaspard.petit@eidosmontreal.com', 'username': 'gaspardpetit'}

Message: Adding BsonDocument constructor that allocates an LinkedHashMap with known capacity

JAVA-3613

Signed-off-by: Gaspard Petit <gaspard.petit@eidosmontreal.com>
Co-authored-by: Jeff Yemin <jeff.yemin@mongodb.com>
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/661985cc0d315ae63cc348576ddef1fb7a946f68

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