Indeed, it's not, just a 32/64 bit compare, processors can do billions of those per second. It's also only called once per incoming transaction.