An update-aware approach to incremental sorting (DeltaSort)
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Paper (PDF): https://github.com/shudv/deltasort/blob/main/paper/main.pdfI’ve been exploring a variant of the sorting problem where the sort routine knows about which indices were updated since the previous sort.This situation arises in many practical systems: large sorted lists that are read frequently, updated in small batches, and where the update pipeline already knows which positions changed (e.g., UI lists, leaderboards). Despite this most systems either re-sort the entire array or apply independent binary insertions or perform extract-sort-merge.In the paper, I propose DeltaSort, an incremental repair algorithm for this update-aware model - which is able efficiently batch together multiple updates and avoid a full re-sort. Initial experiments with a Rust implementation show multi-fold speedups over repeated binary insertion and native sorting (sort_by) for update batch size up to 30%.I’m mainly looking for technical feedback from people who’ve worked on sorting, data structures, or systems: 1. Am I missing prior work that already addresses this model or technique? 2. Are the baselines and comparisons reasonable? Is there a better (stricter) baseline that we can use to compare DeltaSort? 3. How useful does this seem in real systems, outside of the benchmarks I have used?Thanks - and happy to discuss details!
HN · launched Jan 4, 2026 · 6 upvotes (top 75%) · 0 views
Niche: specialized algorithms and computing libraries · 230 launches, 4 in the last 7 days ▼ -73% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 230 launches in specialized algorithms and computing libraries →
Could you build this?
No DeltaSort introduces a novel algorithmic approach to incremental sorting with formal mathematical proofs and benchmarks documented in an academic paper.
What it would actually take: Building DeltaSort requires deep algorithmic and theoretical computer science research into permutation distances, inversion counts, and cache-aware algorithm design. Implementation involves developing custom sorting primitives in C/C++ or Rust that track delta indices and minimize comparisons/branch mispredictions, accompanied by formal complexity proofs.
Discussion
1 comment analyzed.
Competitors
Other products that read as similar to this one : 122 launches clear the similarity bar, closest 8 shown.
Attention rank: #102 of 123 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 58 days after the earliest competitor.
- SortVisualizer · github · 2026-09-27 · 9 upvotes · similarity 0.51
- Pg_sorted_heap–Physically sorted PostgreSQL with builtin vector search · hn · 2026-03-06 · 10 upvotes · similarity 0.50
- Rust library for Undo/Redo using deltas, snapshots or commands · hn · 2026-05-02 · 25 upvotes · similarity 0.45
- ordered-floating-point-addition · github · 2026-11-07 · 12 upvotes · similarity 0.43
- C++ order book matching engine (3.2M orders/SEC, ~320ns) · hn · 2025-12-01 · 5 upvotes · similarity 0.41
- windows-bulk-file-renamer · github · 2026-10-19 · 20 upvotes · similarity 0.40
- lokv · github · 2026-09-12 · 10 upvotes · similarity 0.40
- alzip-desktop · github · 2026-11-10 · 102 upvotes · similarity 0.39
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.