Does the compiler optimise such stuff anyway maybe?