Day 16 of Advent of Compiler Optimisations!
Pass a function two separate arguments, or pack them in a struct — which is faster? The answer might surprise you: sometimes the struct version is MORE efficient! Eight char arguments as separate parameters spill to the stack, but pack them in a struct and they fit in a single register. How does the compiler pull this off?
Read more: https://xania.org/202512/16-calling-conventions
Watch: https://youtu.be/Yaw8AMoP4sI