A C++ Quicksort Faster Than std::sort
0 comments · c, c++, performance
- Comments2
0 comments · c, c++, performance
Story details from Lobsters ↗ · linked article on tiki.li.
A C++ Quicksort Faster Than std::sort was first seen by Trendoday on Nov 9, 2026. Since then it has appeared in 63 checks on 2 different days. It reached #5 on Lobsters · Hottest on Nov 9, 2026 UTC. It was last seen on Lobsters · Hottest on Nov 10, 20:21 UTC. The same link also trended on Hacker News, which raises its cross-platform score.
Position on Lobsters · Hottest at every check (lower is better).
Best rank per day (UTC).
Platform metric as reported by Lobsters.
| List | Best | Days | Checks | Last seen |
|---|---|---|---|---|
| Lobsters · Hottest | #5 · Badge | 2 | 63 | |
| YHacker News · Front page A C++ Quicksort Faster Than std:sort | same link | |||
A few top-level comments from Lobsters, shortened. Read the full thread on Lobsters.
Branchless implementations are so hard to reason about. Sometimes they are faster, sometimes they are slower, sometimes they are faster but your benchmark isn't random enough and the branch predictor makes the branchy implementation look like a winner, begging the question how random your real world data is. Like I…
You're right. When the data is nearly sorted, the advantage of branchless partitioning is much smaller. In this case, a simple Lomuto quicksort using the middle element as the pivot is very fast.
Archived daily, weekly and monthly lists that include this entry.
Not at the moment. Its last recorded appearance was on Nov 10, 20:21 UTC.
#5 on Nov 9, 2026 UTC.
It was first seen on Nov 9, 2026 and has been on the list on 2 days (63 checks) since.