Ivica Bogosavljević from Johny’s Software Lab gave a talk on November 26th, 2020 as part of C++ User Group Osnabrück related to the performance price the developers pay when they are using dynamic memory in C and C++.
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
In this talk, we tried to explain why allocations are slow, why memory accesses are slow, and what the programmer can do to speed them up. We covered allocators, data structures and memory layout since these all have their place in making your program fast.
Check out the talk on Youtube: