orlp/pdqsort
Pattern-defeating quicksort. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4210
- days_rel: n/a
- days_push: 1002
- n_releases_24m: 0
Adoption not part of the score
2504 stars · 99 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Pattern-defeating quicksort (pdqsort) is a C++ sorting algorithm library that combines quicksort's fast average case with heapsort's fast worst case, achieving linear time on certain input patterns. It is a drop-in replacement for std::sort, available as a header-only library under the zlib license.
Use cases
- sort arrays faster than std::sort
- replace std::sort with a faster drop-in sorting algorithm
- sort data with many duplicate elements efficiently
- sort nearly-sorted or patterned input in linear time
- use a deterministic unstable sort with n log n worst case
- speed up sorting of arithmetic types with branchless comparisons
When to choose
- you need a faster replacement for std::sort in C++
- your data often contains patterns like ascending/descending runs or many equal elements
- you want a guaranteed n log n worst case without heapsort's overhead
- you want a small header-only library with no dependencies
When to avoid
- you need a stable sort
- you are not programming in C++
- you need parallel or external sorting for data larger than memory
- your comparison function is expensive and pattern detection overhead dominates
Facets
library · maturity stable
math developer-tools performance developer-tools cpp cross-platform sorting quicksort header-only drop-in-replacement introsort algorithms
1 source
- readme: https://github.com/orlp/pdqsort · fetched 2026-08-28 · 3b45ca467861
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| orlp/pdqsort | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem