[SERVER-85392] Investigate impact of reducing class/struct sizes by reorganizing fields Created: 18/Jan/24  Updated: 19/Jan/24

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Colin Stolley Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Description   

Reordering fields in structs and classes can result in smaller footprints if there are inefficiencies due to alignment holes. A common tool for identifying these "holes" is something called `pahole`. I ran it against the mongod executable and found that there is substantial room for improvement in many of our structs and classes, which could ultimately lead to better cache and memory utilization. What I did not investigate is whether or not this could actually result in faster performance in the server. There may be some low-hanging fruit here but we'd have to prototype it to know for sure.


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