I found some code that had \"optimization\" like this:
void somefunc(SomeStruct param){ float x = param.x; // param.x and x are both floats. supposedly this
Rule of thumb: it's not slow, unless profiler says it is. Let the compiler worry about micro-optimisations (they're pretty smart about them; after all, they've been doing it for years) and focus on the bigger picture.