No video

Optimizing Away C++ Virtual Functions May Be Pointless - Shachar Shemesh - CppCon 2023

  Рет қаралды 16,516

CppCon

CppCon

Күн бұрын

cppcon.org/
---
Optimizing Away C++ Virtual Functions May Be Pointless - Shachar Shemesh - CppCon 2023
github.com/Cpp...
We all know that Virtual Functions Should Be Avoided. A great many tutorials exist for replacing virtual functions with compile-time polymorphism mechanisms, such as std::variant and templates. But is that feeling justified? Are virtual functions truly slower? By how much? Does it matter for your particular use case? What costs do their alternatives carry?
In this lecture we'll try and understand where that impression came from, what virtual functions do that make them slower and how all of that interacts with modern CPU architectures. We'll also explore the limits of benchmarks for answering those questions.
This lecture may not supply you with answers, but it will supply you with better questions.
---
Shachar Shemesh
Shachar Shemesh has been programming computers since the 8-bit era, and still finds passion in it today. Shachar's professional career has taken him to security, networking, storage and video streaming.
Outside his professional career Shachar is... also programming. He has several open source projects to his name, and is lately working on creating his childhood computers, from scratch, on low-cost FPGAs.
Shachar also plays the saxophone. Not necessarily well.
__
Videos Filmed & Edited by Bash Films: www.BashFilms.com
KZbin Channel Managed by Digital Medium Ltd: events.digital...
---
Registration for CppCon: cppcon.org/reg...
#cppcon #cppprogramming #cpp

Пікірлер: 111
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
Pool Bed Prank By My Grandpa 😂 #funny
00:47
SKITS
Рет қаралды 19 МЛН
Harley Quinn's revenge plan!!!#Harley Quinn #joker
00:59
Harley Quinn with the Joker
Рет қаралды 18 МЛН
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 4,2 МЛН
WHY did this C++ code FAIL?
38:10
The Cherno
Рет қаралды 248 М.
Databases are the endgame for data-oriented design
20:31
SpacetimeDB
Рет қаралды 1,6 М.
why are switch statements so HECKIN fast?
11:03
Low Level Learning
Рет қаралды 402 М.
Andrew Kelley   Practical Data Oriented Design (DoD)
46:40
ChimiChanga
Рет қаралды 79 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel
Рет қаралды 150 М.
Optimising Code - Computerphile
19:43
Computerphile
Рет қаралды 144 М.
C++ Best Practices: RAII
7:35
CoffeeBeforeArch
Рет қаралды 15 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10