4 ms·
> I assume something similar can be done in C with no loss of performance under most compilers, since unwrapping a single-field struct is an optimization that a
by account42 5y ago
> I assume something similar can be done in C with no loss of performance under most compilers, since unwrapping a single-field struct is an optimization that a compiler should pick up on every time.
For external functions, it's not an optimization but an ABI requirement (for at least some ABIs) and even for TU-internal functions compilers tend to stick closely to the ABI.