Главная
Study mode:
on
1
Introduction
2
Why do we need it
3
Code Layout
4
Bench Predictor
5
CPU Predictor
6
Cold Branch
7
Indirect Branch
8
Likely vs unlikely
9
Early return
10
Exceptions
11
Likely unlikely macro
12
Actual Benchmark
13
Comparison
14
The Benchmark
15
The Result
16
Switching Order of Declaration
17
Why are they the same
18
Benchmark
19
Perf
20
Summary
21
Questions
22
Syntax placement
23
If is unlikely
24
Bad Hints
25
Predictors
26
Not Optimal
Description:
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only! Grab it Explore the intricacies of C++20's [[likely]] and [[unlikely]] attributes in this CppCon conference talk. Dive deep into branch prediction, optimizations, and pessimizations while learning the art of benchmarking. Investigate the meaning of these attributes, the risks associated with their use, and whether they're worth implementing. Gain valuable insights into performance tuning and discover how to focus efforts on elements that truly impact performance. Benefit from the expertise of Amir Kirsh and Tomer Vromen as they guide you through topics such as code layout, CPU predictors, early returns, exceptions, and actual benchmarks. Enhance your understanding of C++ performance optimization techniques and learn to make informed decisions when using these new language features.

C++20's Likely Attribute - Optimizations, Pessimizations, and Unlikely Consequences

CppCon
Add to list
0:00 / 0:00