Sorting Algorithms: Speed Is Found In The Minds of People - Andrei Alexandrescu - CppCon 2019
What it is
Andrei Alexandrescu's CppCon 2019 talk revisits sorting, showing how branchless tricks, hybrid strategies and a cost metric can speed up std::sort-style algorithms on modern hardware.
Why Hacker News recommends it
HN recommends it as an entertaining talk that starts simple and goes deep on practical performance optimization.
- 7 people recommended it
- 6 different months
- 2 strong recommendations
- first 2019, last 2024
What HN commenters said
“they're entertaining, approachable, and inspiring”
Entertaining, approachable, inspiring keynote on sorting performance
jiggawatts, 2023-01 · Strong recommendation · in “Ask HN: What's the best lecture series you've ever seen?”
“At first he is just showing simple stuff, but stay with it, he goes deep.”
Starts simple then goes deep on performance
bboreham, 2023-12 · Strong recommendation · in “Ask HN: Programming Courses for Experienced Coders?”
“Andrei Alexandrescu gave a great talk at this year's CppCon about practical sorting”
Practical sorting and when to leave quicksort
United857, 2019-10 · Recommendation · in “Engineering a Sort Function (1993) [pdf]”
“I saw a great talk at CppCon 2019 by Andrei Alexandrescu about speeding up std::sort.”
Speeding up std::sort with branchless tricks
planteen, 2019-10 · Recommendation · in “Mispredicted branches can multiply your running times”
“If this question intress you, it is worth watching.”
Optimizing sort for medium vectors, with closing thoughts
nestorD, 2019-11 · Recommendation · in “Infectious Executable Stacks”
“I enjoyed Alexandrescu’s CppCon 2019 talk”
Optimizing generic sorting for modern hardware
jacobolus, 2020-01 · Recommendation · in “Why is quicksort better than other sorting algorithms in practice? (2013)”
“Here's an excellent example of what GP said”
Shows more code can be faster than less code
r_sreeram, 2023-09 · Recommendation · in “Airlines Are Just Banks Now”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: sorting algorithms, c++, branch misprediction, optimization, cppcon
Also recommended by the same people
talkCppCon 2019: Matt Godbolt “Compiler Explorer: Behind The Scenes”CppCon · 2 HN recommenders · 2021–2025
commentaryTwitter and Visual Studio RantMolly Rocket · 3 HN recommenders · 2020–2026
lectureArithmetic, Population and Energy - a talk by Al BartlettlXlSalemlXl · 6 HN recommenders · 2016–2023
talkCppCon 2016: Nicholas Ormrod “The strange details of std::string at Facebook"CppCon · 4 HN recommenders · 2018–2026
talkThe Forgotten Art of Structured Programming - Kevlin Henney [C++ on Sea 2019]cpponsea · 2 HN recommenders · 2021–2022
talkLISA11 - Fork Yeah! The Rise and Development of illumosUSENIX · 9 HN recommenders · 2012–2026
explainerHow big is a visible photon?Huygens Optics · 3 HN recommenders · 2021–2025
talkCppCon 2015: Andrei Alexandrescu “std::allocator...”CppCon · 7 HN recommenders · 2017–2025