@jhorstmann notes:
I looked at this function in #7916 and noted
I looked into also specializing the get_min_max function by moving the logical type checks outside of the loop, but that did not bring any further measurable improvement.
Maybe trying again to vectorize that code could be worthwhile.
Originally posted by @jhorstmann in #8783