Skip to content

Sema: automatically optimize order of struct fields #14336

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 2 commits into from
Jan 17, 2023

Conversation

Vexu
Copy link
Member

@Vexu Vexu commented Jan 16, 2023

This is a simple starting version of the optimization described in #168 where the fields are just sorted by order of descending alignment.

Vexu added 2 commits January 16, 2023 19:46
This is a simple starting version of the optimization described in ziglang#168
where the fields are just sorted by order of descending alignment.
`register_files_update` was passing a pointer to a Zig struct to the kernel.
@andrewrk
Copy link
Member

beautiful 🌷

@andrewrk andrewrk merged commit e646bec into ziglang:master Jan 17, 2023
@ikskuh
Copy link
Contributor

ikskuh commented Jan 20, 2023

Hell yeah!

@Vexu Vexu deleted the field-reorder branch May 27, 2023 11:49
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