3 ms·
> True. I imagine modern compilers optimize this sort of stuff very quickly. Just checked with Clang (and otool), in Os and O2 the disassembly is exactly the s
by masklinn 15y ago
> True. I imagine modern compilers optimize this sort of stuff very quickly.
Just checked with Clang (and otool), in Os and O2 the disassembly is exactly the same whether one uses struct accesses or raw pointer assignments.
There are differences in O0 though.