Hacker GitHub

← All repos

scandum/quadsort

View on GitHub ↗ ★ 2,209 C

Quadsort is a branchless stable adaptive mergesort faster than quicksort.

8 mentions on Hacker News by 7 people: 2 stories, 6 comments · first 2020-02-14 · latest 2024-07-25

Mentions per year 8 mentions · busiest year 2023 (4)
20082026
  1. …https://danluu.com/3c-conflict/ > Where do you find these? :-) There's a list of cool sorts here https://github.com/scandum/quadsort?tab=readme-ov-file#varia... and they are often submitted to HN.
  2. https://github.com/scandum/quadsort/blob/f171a0b26cf6bd6f6dc... As you can see, quadsort 1.1.4.1 used 2 instead of 4 writes in the bi-directional parity merges. This was in June 2021, and would have compiled as branchless with clang, but…
  3. …looks like the seed to the benchmark can be provided as the 4th command line argument if necessary: https://github.com/scandum/quadsort/blob/master/src/bench.c#...
    comment by tuukkah · 2023-01-29 · in Show HN: QuadSort, Esoteric Fast Sort
  4. …combines various novel strategies to achieve the best performance on a wide variety of inputs: https://github.com/scandum/quadsort#visualization Benchmarks of how it beats qsort, Timsort, pdqsort etc.:…
    comment by tuukkah · 2023-01-29 · in Show HN: QuadSort, Esoteric Fast Sort
  5. …does not appear to be so. I wonder if wolfsort is stable and faster because it utilizes quadsort? https://github.com/scandum/quadsort
  6. Swap space is allocated here: https://github.com/scandum/quadsort/blob/c3bcf139c59eb296b28...