[SERVER-79068] Investigate performance impact of BSONObj::redact Created: 18/Jul/23 Updated: 11/Aug/23 Resolved: 11/Aug/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | William Qian | Assignee: | Naama Bareket |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Query Optimization
|
||||||||
| Participants: | |||||||||
| Description |
|
BSONObj::redact contains many branches and an unusual idiom of creating a function-scope struct instead of using a lambda. If this ends up on the hot path, its performance can be possibly optimized by using templates and cheaper function constructs. |