> For example, if you have a variable 'v' and want to update it to a new value 'f', you can do 'if (v == f)' to check if the variable would change.
Isn't it strictly faster to simply assign? No branching, no branch predictions, only one instruction in all cases.