So at the suggestion of a colleague, I just tested the speed difference between the ternary operator and the equivalent If-Else block... and it seems that the ternary operat
Any decent compiler should generate the same code for these if optimisation is turned on.