[SERVER-69187] Use a no-op buffer to avoid allocating memory when checking invalid UTF-8 characters Created: 26/Aug/22  Updated: 29/Oct/23  Resolved: 29/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

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

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-09-05
Participants:

 Description   

Right now we passed in a string to use as a buffer that we don't really need. We can create a light-weight no-op buffer to avoid writing out unnecessary data.



 Comments   
Comment by Githook User [ 29/Aug/22 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-69187 Use a no-op buffer to avoid allocating memory when checking for invalid UTF-8 characters
Branch: master
https://github.com/mongodb/mongo/commit/c24c3b8d5ac159f255ef22433cd12e5211952c27

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