[GODRIVER-2026] Reduce allocations in bsonrw.valueReader and bsoncodec.MapCodec Created: 26/May/21 Updated: 19/Sep/22 |
|
| Status: | Backlog |
| Project: | Go Driver |
| Component/s: | Performance |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Matt Dale | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Quarter: | FY23Q2, FY23Q3 | ||||||||
| Description |
|
In the attached memory profile of unmarshalling BSON, the bsonrw.valueReader#advanceFrame and bsoncodec.MapCodec#decodeKey methods make up about 25% of total allocations when decoding benchmark BSON documents, which seems unusually high. The exact source of the allocations is unclear, it requires more investigation. See the attached memory profile. |