[SERVER-76898] Optimize string construction in NamespaceString Created: 05/May/23  Updated: 29/Oct/23  Resolved: 09/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc1

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

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Participants:

 Description   

We missed a few optimizations in the SERVER-75529 refactor:



 Comments   
Comment by Githook User [ 09/May/23 ]

Author:

{'name': 'Matt Broadstone', 'email': 'mbroadst@mongodb.com', 'username': 'mbroadst'}

Message: SERVER-76898 Optimize string construction in NamespaceString

(cherry picked from commit 4407a9176ed806546471200e57a3ceff65903a93)
Branch: v7.0
https://github.com/mongodb/mongo/commit/1adc6f37a5c6b3ca4931e22c51450b7e0eb31acf

Comment by Githook User [ 08/May/23 ]

Author:

{'name': 'Matt Broadstone', 'email': 'mbroadst@mongodb.com', 'username': 'mbroadst'}

Message: SERVER-76898 Optimize string construction in NamespaceString
Branch: master
https://github.com/mongodb/mongo/commit/4407a9176ed806546471200e57a3ceff65903a93

Comment by Matt Broadstone [ 06/May/23 ]

profiling revealed that fmt::format is still less performant than StringBuilder, stricken from the list.

Generated at Thu Feb 08 06:33:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.