PERF: resample with max/min taking slow path (#5927)