-
- Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Hello,
I've noticed that there's a potential for optimizing certain structs by rearranging their fields. This optimization could notably reduce the padding added by the compiler, ensuring better memory utilization and potentially enhancing performance.
It's important to consider that alignment requirements vary between 32-bit and 64-bit architectures. With a focus on optimizing for 64-bit architecture, I believe there's significant room for improvement in this regard.
It's worth emphasizing that this optimization won't alter the program's logic; rather, it involves solely changing the location of fields within the structs.
If okay, I would like to work on this.
Metadata
Metadata
Assignees
Labels
No labels