Skip to content

Conversation

aliyevaa
Copy link
Contributor

Heap --showInternalFragmentation shows that we are loosing 14 bytes to padding in Node instances.
Class: 'Node' [instance size 104, allocation size 112] - Swift, ARC {
...
}
16: keyAndFingerprint;
<< 7 alignment bytes >>
64: definitionLocation;
88: isTraced;
<< 7 alignment bytes >>
96: cachedHash;
}
Moving isTraced up here will push Node instance allocations to the next quanta (96)

@aliyevaa aliyevaa requested review from artemcm and owenv April 10, 2024 18:56
@artemcm
Copy link
Contributor

artemcm commented Apr 10, 2024

@swift-ci test

@artemcm
Copy link
Contributor

artemcm commented Apr 11, 2024

@swift-ci test Windows platform

@artemcm artemcm merged commit 8b730e9 into main Apr 11, 2024
@artemcm artemcm deleted the Node-struct-members-reordering branch April 11, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants