[JAVA-1789] ObjectId.toHexString method is slow Created: 30/Apr/15  Updated: 01/May/15  Resolved: 01/May/15

Status: Closed
Project: Java Driver
Component/s: BSON
Affects Version/s: 3.0.0
Fix Version/s: 3.1.0

Type: Improvement Priority: Minor - P4
Reporter: Steve Benjamin Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Java driver converting ObjectId to hex string is extremely slow as it relies on repeated calls to String.format



 Comments   
Comment by Ross Lawley [ 01/May/15 ]

Thanks steve@flow.net, your pull request has been merged and is scheduled to be released in the 3.1 release.

Comment by Githook User [ 01/May/15 ]

Author:

{u'username': u'stevenbenjamin', u'name': u'Steven Benjamin', u'email': u'steve@flow.net'}

Message: JAVA-1789 100x speedup of ObjectId.toHexString method
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/024e94a222301295f69fc1f2d4a9f7211c019edd

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