PERF: Allow RangeIndex.take to return a RangeIndex when possible
Discovered in https://github.com/pandas-dev/pandas/pull/57441
thx @mroeschke   https://asv-runner.github.io/asv-collection/pandas/#frame_methods.SortValues.time_frame_sort_values

Looks like this caused a pretty bad regression