[SERVER-76101] Use StringMap in IDL generated string lookup tables Created: 13/Apr/23  Updated: 29/Oct/23  Resolved: 21/Apr/23

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

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
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
Sprint: Security 2023-05-01
Participants:

 Description   

Currently, IDL uses std::unordered_map<std::string> in string lookup tables. This necessitates a string allocation to lookup strings. It should be changed to mongo::StringMap so that StringData can be used as a lookup key.



 Comments   
Comment by Githook User [ 13/Jun/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-76101 Use StringMap in IDL generated string lookup tables

(cherry picked from commit 211ea2664adbbc7e22f07b1dc7911257f368d1f8)
Branch: v7.0
https://github.com/mongodb/mongo/commit/21a71699351c6058932fed343d785a92f7070b43

Comment by Githook User [ 21/Apr/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-76101 Use StringMap in IDL generated string lookup tables
Branch: master
https://github.com/mongodb/mongo/commit/211ea2664adbbc7e22f07b1dc7911257f368d1f8

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