PERF: better perf on min/max/resample when on indices not containing NaT for DatetimeIndex/PeriodIndex (GH7633)
Merge pull request #7684 from jreback/perf

PERF: better perf on min/max on indices not containing NaT for DatetimeIndex/PeriodsIndex