The Most Important Optimizations to Apply in Your C++ Programs - Jan Bielak - CppCon 2022
---
The Most Important Optimizations to Apply in Your C Programs - Jan Bielak - CppCon 2022
Writing efficient programs is hard. This is because it requires a lot of knowledge, experience and strategic thinking. There have been many talks on optimization and often each addresses a single concept. Being able to achieve a bird’s eye view of factors affecting performance often requires many hours of researching the topic. To lessen the mental burden of optimizing programs, I have picked out the techniques, I believe are most important. During the talk, I will present them in an organized manner and provide practical examples of how they can be applied.
I will first discuss what I believe are the main goals efficient programs strive to achieve. Then, I will present the general methods of achieving those goals. Then, for the majority of the talk, we will discuss a few dozen performance opportunities. For each of them, I will explain the underlying mechanism of how the optimisation works. I will avoid bluntly giving guidelines to follow without explanation. Each of the techniques naturally comes with its costs, and those will be discussed as well.
I will additionally discuss various performance pitfalls. These are sometimes called “premature pessimisations” in contrast to the often used term of “premature optimizations”. I will show examples of optimizations which do not incur any cost on program readability or maintainability and as such should be considered performance best practices. Avoiding their use doesn’t improve code in any manner, while making it slower.
This talk is intended for a diverse audience, as after all, probably most of the C community is interested in performance. It is appropriate for hobbyists and professionals alike, with varying experience with the language, due to the gradual increase in difficulty of examples. It will be a time productively spent.
---
Jan Bielak
Jan Bielak is a student at the Warsaw Staszic High School. His main areas of interest are physics and computer science. He is especially into advanced C programming and physically based real-time rendering. He also hosts an educational YouTube channel. He is involved in the CyberDuck project and in the PaSh project. In free time, he likes to create renders in Blender.
Website:
GitHub: janekb04
YouTube: JBGraphics
---
Videos Streamed & Edited by Digital Medium:
#cppcon #programming #cpp
1 view
834
320
2 weeks ago 00:00:32 1
…but the people are retarded
2 weeks ago 00:05:32 1
Queen - Bohemian Rhapsody (Live at Rock Montreal, 1981) [HD]
2 weeks ago 00:08:10 1
AI Agents Will Create MILLIONAIRES in 2025 – Are You Ready
2 weeks ago 00:04:49 1
Play To Earn🔥This New Play to Earn Game is About to Make a Lot of People RICH
3 weeks ago 00:21:40 1
La Toya Jackson On Michael’s Allegations | What Changed Her Mind? | the detail.
3 weeks ago 00:31:07 1
35 Advanced English Verb Rules
3 weeks ago 00:05:17 1
10 самых влиятельных персон российского искусства. The 10 most influential figures of Russian art.
3 weeks ago 00:03:10 1
Sometimes I Like To Lie - AnnenMayKantereit
3 weeks ago 00:26:26 1
LEGO Horizon Adventures PS5 Pro Gameplay - Thunderjaw Boss Fight
3 weeks ago 00:20:02 1
Vlog OZORA FESTIVAL 2023 💃 BOOM BOOM Walking Tour (▶20 min)
3 weeks ago 00:14:36 1
TOP 40❗FAILS 4X4 THE CRAZIEST OFF ROAD ACCIDENTS ❌ INSANE FAILS AND WINS AMAZING VEHICLES 2024
3 weeks ago 00:13:57 1
Why did Davy Jones Look SO Realistic?
3 weeks ago 00:04:02 1
Ich hatt einen Kameraden [German soldier funeral song][+English translation]
3 weeks ago 00:49:14 1
A Case Against the Christian God, Yahweh
4 weeks ago 00:02:33 6
Cold Steel - Special Forces Shovel
4 weeks ago 00:09:01 1
Anna Amalie von Preußen (1723-1787) - Sonata per il Flauto traverso (1771)
4 weeks ago 00:06:07 1
PATRIARKH - WIERSZALIN IV (feat. Eliza Sacharczuk) (Official Video) | Napalm Records
4 weeks ago 00:01:18 1
ORIVISION New Launch - 4 Channels HEVC HDMI Encoder EH1304
4 weeks ago 00:08:45 2
TXT Answer The Web’s Most Searched Questions | WIRED
4 weeks ago 00:04:29 1
MAJESTICA - Power Train (OFFICIAL MUSIC VIDEO)
4 weeks ago 00:00:54 1
Elon Musk takes son Lil X to meet Tayyip Erdogan
4 weeks ago 00:20:02 1
NEW Thermaltake TH360 V2 Ultra ARGB Sync AIO CPU Water Cooler With IPS LCD Screen