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