Skip to content
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

Remove the padding from the State structure #283

Merged

Conversation

brian-pane
Copy link

This is a cleanup following the recent restructuring of fields.

This is a cleanup following the recent restructuring of fields for cache locality.
@brian-pane
Copy link
Author

On my test system, the performance of this patch is the same as main for compression levels 1-9.

Comment on lines -1229 to +1219
#[repr(C)]
#[repr(C, align(64))]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's fine to have this, because that is the intention, but the state is always stored on the heap, and we make sure that all allocations are aligned to 64 bytes anyway, so in practice this does not have any effect.

@folkertdev folkertdev merged commit 46aabba into trifectatechfoundation:main Jan 9, 2025
20 checks passed
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