[SERVER-36108] speedup BSONArrayBuilder by counting in decimal Created: 13/Jul/18  Updated: 29/Oct/23  Resolved: 30/Aug/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.1.3

Type: Bug Priority: Major - P3
Reporter: Geert Bosch Assignee: Geert Bosch
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2018-07-16, Storage NYC 2018-07-30, Storage NYC 2018-09-10
Participants:
Linked BF Score: 60

 Description   

BSONArrayBuilder can slow down significantly as result of decimal binary conversions to generate string representations of indices. Speed this up by directly counting on a decimal string representation.



 Comments   
Comment by Githook User [ 05/Aug/18 ]

Author:

{'name': 'Geert Bosch', 'email': 'bosch@gnat.com'}

Message: SERVER-36108 speed up BSONArrayBuilder by counting in decimal

Now removed constexpr that broke Windows build.
Branch: master
https://github.com/mongodb/mongo/commit/27d839b2ab77ab822c578835b09f72129b80c68a

Comment by Githook User [ 03/Aug/18 ]

Author:

{'username': 'GeertBosch', 'name': 'Geert Bosch', 'email': 'geert@mongodb.com'}

Message: Revert "SERVER-36108 speed up BSONArrayBuilder by counting in decimal"

This reverts commit ce9968b484b95fe3f08ffe1d15791e8fadc9e854.
Branch: master
https://github.com/mongodb/mongo/commit/ecb0b6c6dfb854f53c3e4fa05aa61bb9a1bed554

Comment by Githook User [ 03/Aug/18 ]

Author:

{'name': 'Geert Bosch', 'email': 'bosch@gnat.com'}

Message: SERVER-36108 speed up BSONArrayBuilder by counting in decimal
Branch: master
https://github.com/mongodb/mongo/commit/ce9968b484b95fe3f08ffe1d15791e8fadc9e854

Generated at Thu Feb 08 04:42:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.