[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: |
|
||||||||
| 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: |