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

Tuples sometimes less efficient than the corresponding struct. #60818

Open
dabrahams opened this issue Aug 27, 2022 · 0 comments
Open

Tuples sometimes less efficient than the corresponding struct. #60818

dabrahams opened this issue Aug 27, 2022 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. CodeGen performance

Comments

@dabrahams
Copy link
Collaborator

dabrahams commented Aug 27, 2022

If you take https://godbolt.org/z/5ejxaadK8 and exchange the names of Duple and Duple0 you'll see that many of the comparison functions produce worse code. I tried all of those variants with tuples before attempting the same with a struct. The examples are designed to normalize for endianness.

@dabrahams dabrahams added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. performance CodeGen labels Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. CodeGen performance
Projects
None yet
Development

No branches or pull requests

1 participant