4 ms·
return { c } fully initializes the struct according to the language semantics, and the inefficient code does that. What you've written is just a different way
by kazinator 6y ago
return { c } fully initializes the struct according to the language semantics, and the inefficient code does that.
What you've written is just a different way of spelling the full initialization, which should not have a radical effect on the generated code.
- Areading314 6y agoAgreed, just thought it was noteworthy
- kazinator 6y agoIt's alarming that such a high level difference has that much influence over code generation, in such a mature compiler.