REUPLOAD: The Hidden Performance Price of C++ Virtual Functions - Ivica Bogosavljevic - CppCon 2022
Vložit
- čas přidán 5. 05. 2024
- cppcon.org/
---
The Hidden Performance Price of C++ Virtual Functions - Ivica Bogosavljevic - CppCon 2022
github.com/CppCon/CppCon2022
Virtual function mechanism is one of the core concepts of C++, however, it does come with a performance price. But how high is that price? In this talk we are going to dissect virtual functions to understand when they are slow and why they are slow. We will investigate how well virtual functions use the CPU's underlying resources and how good is the compiler at optimizing virtual functions. We will also present several techniques to help you speed up your program using virtual functions.
---
Ivica Bogosavljevic
Senior Software Engineer with 10 years of experience active in the domain of Linux and bare-metal embedded systems. His professional focus is application performance improvement - techniques used to make your C/C++ program run faster by using better algorithms, better exploiting the underlying hardware, and better usage of the standard library, programming language, and the operating system. Writer for a performance-related tech blog: johnysswlab.com]
---
Videos Streamed & Edited by Digital Medium: online.digital-medium.co.uk
#cppcon #programming #functions - Věda a technologie
Nice detailed talk, Thanks
Nice talk CppCon, keep going good work, thanks
At around 8:20, why 200 million calls to the "long and slow" function is faster than "short and fast" function?
On slide 14 it looks like the reason it looks exponential is because the scale on the x axis is logarithmic. I think it's more of a linear relationship.
Good talk 👍
Can anyone suggest tools to measure startup time of an application and like where the delay occurs? Preferably in Windows
Intel vtune
Reupload?
Reupload.
Reupload.
Reupload.
Reupload.