CppCon 2014: Chandler Carruth "Efficiency with Algorithms, Performance with Data Structures"
What it is
Chandler Carruth's CppCon 2014 talk on writing fast C++, explaining why data structure choice and memory layout matter more than clever algorithms. It covers why standard containers like unordered_map perform poorly on modern CPUs.
Why Hacker News recommends it
A perennial recommendation for anyone learning performance optimization, cited whenever hash tables, cache behavior or STL containers come up.
- 7 people recommended it
- 7 different months
- 2 strong recommendations
- first 2014, last 2024
What HN commenters said
“See the great talk on CppCon 2014 about those issues”
Covers inefficient standard library containers like unordered_map on modern CPUs
amaks, 2014-12 · Strong recommendation · in “Std::string half of all allocations in the Chrome browser process”
“I'm also a big fan of "Efficiency with Algorithms, Performance with Data Structures" by Chandler Carruth at CppCon 2014.”
Commenter is a big fan of this performance talk
slavik81, 2024-03 · Strong recommendation · in “Ask HN: How can I learn about performance optimization?”
“Chandler Carruth's CPPCon talk [0] this year was also great”
A great and actionable CppCon performance talk for most developers
yoklov, 2015-02 · Recommendation · in “The Care and Feeding of C++'s Dragons (2013) [video]”
“I've just watched a couple cppcon talks ([0], [1]) and I'm feeling a bit drunk on the kool-aid.”
Talk that made the commenter rethink linked versus contiguous data structures
sanderjd, 2015-08 · Recommendation · in “The Case for Controlled Side Effects”
“Listed among talks on C++ efficiency and performance”
humanrebar, 2016-05 · Recommendation · in “Why I don't spend time with Modern C++ anymore”
“See for example this nice talk by Chandler Carruth”
Nice talk on carefulness with dictionaries in performance-sensitive code
adrianN, 2017-06 · Recommendation · in “Diving into the world of hash tables”
“you'd probably really enjoy Chandler Carruth's "Efficiency with Algorithms, Performance with Data Structures" talk from CppCon 2014”
Efficiency with algorithms and performance with data structures
alexhutcheson, 2020-09 · Recommendation · in “On modern hardware the min-max heap beats a binary heap”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: c++, data structures, cache locality, unordered_map, performance optimization, cppcon
Also recommended by the same people
tutorialWild Tricks for Greenscreen in BlenderIanHubert · 3 HN recommenders · 2020–2026
tutorialBlender Motion Tracking - Room Transformation!IanHubert · 4 HN recommenders · 2020–2022
talkCppCon 2017: Herb Sutter “Meta: Thoughts on generative C++”CppCon · 2 HN recommenders · 2017–2020
explainerBut what is the Riemann zeta function? Visualizing analytic continuation3Blue1Brown · 6 HN recommenders · 2017–2023
talkCppCon 2015: Greg Law " Give me 15 minutes & I'll change your view of GDB"CppCon · 6 HN recommenders · 2018–2023
talkCppCon 2017: Louis Brandy “Curiously Recurring C++ Bugs at Facebook”CppCon · 4 HN recommenders · 2020–2025
talkCppCon 2015: Chandler Carruth "Tuning C++: Benchmarks, and CPUs, and Compilers! Oh My!"CppCon · 3 HN recommenders · 2015–2020
talkWhat prevents the poor from reaching the middle class? | VISION TALKSAmerican Enterprise Institute · 2 HN recommenders · 2014–2024