[SERVER-76222] Avoid temporary allocations of DatabaseName Created: 17/Apr/23  Updated: 29/Oct/23  Resolved: 18/Apr/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

Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-05-01
Participants:

 Description   

The changes in SERVER-75733 removed an implicit StringData constructor from DatabaseName, instead opting to wrap most calls to NamespaceString::db() with an allocation of DatabaseName. This ticket will finish the job by directly returning the embedded DatabaseName instead of allocating a new one.



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

Author:

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

Message: SERVER-75733 SERVER-76222 SERVER-75529 SERVER-76632 SERVER-76632 Backport perf improvements to NamespaceString

(cherry picked from commit 3e76161bc537343aa585b305c068b1910578c07f)
(cherry picked from commit 7cc71f7d5f29a5850a4d186b9554df3dcb407117)
(cherry picked from commit 7c1ed6898f9004cf7aa9b2e16371fa83c72b3ba3)
(cherry picked from commit 95782eb4c729cd341ae2398863faa8292d8abd4e)
(cherry picked from commit bcff3cee04973b3ab91b78a70ca6b5740f22e1a0)
Branch: v7.0
https://github.com/mongodb/mongo/commit/57cb7734d42bad79f636e9be2ad313398614e83e

Comment by Githook User [ 18/Apr/23 ]

Author:

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

Message: SERVER-76222 Avoid temporary allocations of DatabaseName
Branch: master
https://github.com/mongodb/mongo/commit/7cc71f7d5f29a5850a4d186b9554df3dcb407117

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