Effortless Performance Improvements in C++ | Julien Jorge's Personal Website
C++ is a great language for writing performant programs by default, that’s why we love it. Or is it? In this series of blog posts we are going to explore the implications on processing time for typical C++ way-of-doing by implementing a non-trivial task using idiomatic C++. Then we will benchmark this program and improve its performance. Optimization is a never-ending quest that can lead to huge sacrifices in terms of code readability. Readability is relative, i.e. when it is the kind of code you see everyday, it becomes quite readable for you, so here by readability I mean “how hard it is for an experienced programmer to grasp the intent from the code”. In these blog posts we will restrict ourselves into transformations that do not diminish the expressiveness of the existing interfaces, and we will stay withing the scope of the standard library. We will see that even within these limits one can easily reduce processing times by a factor of two, and maybe three with some compromises. A
Effortless Performance Improvements in C++ | Julien Jorge's Personal Website Effortless Performance Improvements in C++ Wed Feb 22, 2023 en c++ optimization perf C++ is a great language for writing performant programs by default, that's why we love it. Or is it? In this series of blog posts we are going to explore the implications on processing time for typical C++ way-of-doing by implementing a non-trivial task using idiomatic C++. Then we will benchmark this program and improve its performance. Optimization is a never-ending quest that can lead to huge sacrifices in t
saved by
related reading
- Compilers - What Every Programmer Should Know About Compiler Optimizations | Microsoft Learnlearn.microsoft.com
- abseil / Performance Hintsabseil.io
- abseil / Performance Hintsabseil.io
- Three Optimization Tips for C++ - Engineering at Metaengineering.fb.com
- Optimization of Computer Programs in Cicps.u-strasbg.fr
- Competitive Programmer's Handbookcses.fi
- Speed mattersscattered-thoughts.net
- Infographics: Operation Costs in CPU Clock Cycles - 6IT6it.dev
- Accidentally Quadraticaccidentallyquadratic.tumblr.com
- ECE 459 Notes-c7e788e7-ce2d-4c9e-aea7-501503322e57.pdflooseleaf-app.s3.us-east-2.amazonaws.com
- How (and why) we rewrote our production C++ frontend infrastructure in Rustblog.nearlyfreespeech.net
- PERF tutorial: Finding execution hot spots - Sand, software and soundsandsoftwaresound.net