• Tom Lane's avatar
    Replace insertion sort in contrib/intarray with qsort(). · 8d1f2390
    Tom Lane authored
    It's all very well to claim that a simplistic sort is fast in easy
    cases, but O(N^2) in the worst case is not good ... especially if the
    worst case is as easy to hit as "descending order input".  Replace that
    bit with our standard qsort.
    
    Per bug #12866 from Maksym Boguk.  Back-patch to all active branches.
    8d1f2390
_int_tool.c 6.33 KB