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

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

CppCon via YouTube Direct link

Summary

20 of 26

20 of 26

Summary

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

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

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Introduction
  2. 2 Why do we need it
  3. 3 Code Layout
  4. 4 Bench Predictor
  5. 5 CPU Predictor
  6. 6 Cold Branch
  7. 7 Indirect Branch
  8. 8 Likely vs unlikely
  9. 9 Early return
  10. 10 Exceptions
  11. 11 Likely unlikely macro
  12. 12 Actual Benchmark
  13. 13 Comparison
  14. 14 The Benchmark
  15. 15 The Result
  16. 16 Switching Order of Declaration
  17. 17 Why are they the same
  18. 18 Benchmark
  19. 19 Perf
  20. 20 Summary
  21. 21 Questions
  22. 22 Syntax placement
  23. 23 If is unlikely
  24. 24 Bad Hints
  25. 25 Predictors
  26. 26 Not Optimal

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.