Ironic observation about `sort` and `sortperm` speed for "small integers" vs R

I’ve also found the mismatch in performance in Julia between sort and sortperm to be quite puzzling. I never really understood how could sort be so much faster than sortperm. Are you making the case that a different default sorting algorithm should be used for sort and sortperm?

1 Like