Skip to content

reorder elements in art_node to eliminate space inflation #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 11, 2021
Merged

reorder elements in art_node to eliminate space inflation #41

merged 1 commit into from
Feb 11, 2021

Conversation

wuxb45
Copy link
Contributor

@wuxb45 wuxb45 commented Feb 9, 2019

The offset of partial_len is aligned at Byte 4 so there are two bytes of gap between num_children and partial_len. This inflates the size of struct art_node by 2 and it affects all the other node types.

@armon
Copy link
Owner

armon commented Feb 11, 2021

Thanks!

@armon armon merged commit 0435b70 into armon:master Feb 11, 2021
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.

2 participants