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
Explore this link on the map →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
- Algorithms for Modern Hardware - Algorithmicaen.algorithmica.org
- Speed mattersscattered-thoughts.net
- Infographics: Operation Costs in CPU Clock Cycles - 6IT6it.dev
- Competitive Programmer's Handbookcses.fi
- Paul Buchheit: Optimizing everything: some details matter a lot, most don'tpaulbuchheit.blogspot.com
- Learn C++ – Skill up with our free tutorialslearncpp.com
- Rust Optimization.md · GitHubgist.github.com