Why is this faster than just a max operator?