Skip to content

Skip needless calls to get_align in some cases. #718

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
Jun 24, 2025

Conversation

FractalFir
Copy link
Contributor

This PR updates the create_type and Builder::load functions to not call get_aligned when not necessary(for byte-sized types). It also contains some minor improvements to the comments in Builder::load function.

@FractalFir
Copy link
Contributor Author

The CI faliures seme to be caused by me basing the PR on master. Should go away once the clippy fixes get merged.

@FractalFir FractalFir force-pushed the needless_align branch 2 times, most recently from 0c6cc23 to e6281e0 Compare June 24, 2025 10:41
@FractalFir
Copy link
Contributor Author

Should be good for review now.

Copy link
Contributor

@antoyo antoyo left a comment

Choose a reason for hiding this comment

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

A few questions and nitpicks.

Thanks for this nice improvement!

@FractalFir FractalFir force-pushed the needless_align branch 2 times, most recently from 25e16c8 to 1140abd Compare June 24, 2025 20:10
@FractalFir
Copy link
Contributor Author

Should be good for review now!

Copy link
Contributor

@antoyo antoyo left a comment

Choose a reason for hiding this comment

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

Nice work!

@antoyo antoyo merged commit 54b1ff5 into rust-lang:master Jun 24, 2025
38 checks passed
@antoyo
Copy link
Contributor

antoyo commented Jun 24, 2025

Thanks for your contribution!

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