[SERVER-40463] stringutils should return StringData instead of std::string Created: 03/Apr/19  Updated: 29/Oct/23  Resolved: 10/Apr/19

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

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

Issue Links:
Related
is related to SERVER-32709 Mobile SE: Index creation takes a lon... Closed
Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2019-04-08, Dev Tools 2019-04-22
Participants:

 Description   

So allocation/copies can be avoided when not needed. If the user need it to be a string you can always call toString() on the StringData



 Comments   
Comment by Luke Chen [ 11/Apr/19 ]

Fixing up the fixVersion as this ticket was not included as part of 4.1.10 release.

Comment by Githook User [ 10/Apr/19 ]

Author:

{'name': 'Henrik Edin', 'username': 'henrikedin', 'email': 'henrik.edin@mongodb.com'}

Message: SERVER-40463 String utils output StringData instead of std::string
Branch: master
https://github.com/mongodb/mongo/commit/5f60f56987ac81e1190c16ba574200303fffc256

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