4 ms·
There's something interesting about 'sortBy' semantics which you see in some languages. As the cost of your comparator goes up (especially on real hardware wit
by hinkley 7y ago
There's something interesting about 'sortBy' semantics which you see in some languages.
As the cost of your comparator goes up (especially on real hardware with pointer chasing) the difference between running the comparator m * nlogn times and running the transform m*n times could start to stack up.