Branch/performance

@BrettASwift @kadst43 would you mind reviewing?
Erm, I meant if you're going to do it for min, do it for max.