flâneur — a map of the web's best reading

Effortless Performance Improvements in C++ | Julien Jorge's Personal Website

julien.jorge.st · 2,316 words · saved by 1 readers

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

Explore this link on the map →

saved by

related reading