HackerTube

CppCon 2014: Chandler Carruth "Efficiency with Algorithms, Performance with Data Structures"

CppCon7 HN recommenders · recommended in 7 months, 2014–2024
YouTube
talk · intermediate · evergreen · 2014–2024 on HN

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.

A perennial recommendation for anyone learning performance optimization, cited whenever hash tables, cache behavior or STL containers come up.

12 comments from Hacker News

@slavik812024-03 · in “Ask HN: How can I learn about performance optimization?”

Strongly agree. That's perhaps less true for the software I work on these days (lapack), but I've seen that so many times over my career. I'm also a big fan of "Efficiency with Algorithms, Performance with Data Structures" by Chandler Carruth at CppCon 2014. ▶ this video

Strongly recommends View on HN
@amaks2014-12 · in “Std::string half of all allocations in the Chrome browser process”

There are many things in the standard C++ library which are named incorrectly (std::string), awkwardly (std::unordered_map) and and implemented inefficiently from the perspective of modern CPUs (same std::unordered_map, which uses linked list for the underlying hash table buckets). See the great talk on CppCon 2014 about those issues - ▶ this video .

Strongly recommends View on HN
@alexhutcheson2020-09 · in “On modern hardware the min-max heap beats a binary heap”

If you haven't already seen it, you'd probably really enjoy Chandler Carruth's "Efficiency with Algorithms, Performance with Data Structures" talk from CppCon 2014: ▶ this video

Recommends View on HN
@adrianN2017-06 · in “Diving into the world of hash tables”

Yes, if you write performance sensitive code you have to be very careful with dictionaries. See for example this nice talk by Chandler Carruth ▶ this video

Recommends View on HN
@humanrebar2016-05 · in “Why I don't spend time with Modern C++ anymore”

Here's a few: - "Tuning C++: Benchmarks, and CPUs, and Compilers! Oh My!" link - "Understanding Compiler Optimization" link - "Optimizing the Emergent Structures of C++" link - "Efficiency with Algorithms" ▶ this video The first one is really good if you've never benchmarked anything in a Linux environment. Or if you otherwise want to learn how to investigate how C++ gets turned into machine code.

Recommends View on HN