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

Avoid transmute where possible #3421

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Avoid transmute where possible #3421

merged 2 commits into from
Jan 7, 2025

Conversation

kennykerr
Copy link
Collaborator

@ChrisDenton's fix in #3419 reminded me that I have some work to do to remove more of the unnecessary transmute calls in generated code. This is just some low-hanging fruit but I have some more work to do to avoid the as cast entirely in cases where the parameter and ABI types are identical. With the overhaul in #3359 this is quickly getting easier.

Copy link
Collaborator

@ChrisDenton ChrisDenton left a comment

Choose a reason for hiding this comment

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

Nice! It's also great that you're still finding ways to reduce the code size.

@kennykerr kennykerr merged commit 284f189 into master Jan 7, 2025
75 checks passed
@kennykerr kennykerr deleted the transmute-less branch January 7, 2025 13:07
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