Skip to content

Ivica Bogosavljevic: The price of dynamic memory in C/C++

Photo of Tina Ulbrich
Hosted By
Tina U.
Ivica Bogosavljevic: The price of dynamic memory in C/C++

Details

For most C/C++ developers, working with dynamic memory boils down to using new/malloc and delete/free functions. However, when your program's speed is important, you will need to rethink the way you are using these functions and how you are organizing your data in memory.

In C/C+, slowdowns due to usage of dynamic memory manifest themselves in two parts:

  1. Slowdowns because new/malloc or delete/free are slow
  2. Slowdown because the access to allocated memory is slow

We will talk about why allocations are slow, why memory accesses are slow and what the programmer can do to speed them up. We will cover allocators, data structures and memory layout since these all have their place in making your program fast.

Join here: https://meet.osna.social/osnacpp
Please disable your video feed when you join.

If you only want to listen, you can view the YouTube feed at
https://youtu.be/Uo9cv140tsw .

-----------------------------------------------
This event is an collaboration with the User Group Karlsruhe:
https://www.meetup.com/de-DE/C-User-Group-Karlsruhe

Photo of C++ User Group Osnabrück group
C++ User Group Osnabrück
See more events