Basic usage of PMRs for better performance

Speaker: Marek Krajewski

Audience level: [ Beginner | Intermediate ]

The C++ allocators were a constant source of complaints, so in C++11, C++14 and C++17 there were a series of improvements which were introduced. Last one of them were polymorphic memory resources included in the C++17 standard. However, the PMRs seem to be perceived as a rather difficult and obscure topic.

In this talk we want to show that this reputation is quite undeserved! We will look at usage of PMRs for perfomance improvement, the available PMR types, and basic scenarios these types are supposed to be used in.

Finally we will discover some similarities between PMR usage and techniques used for tuning of the global allocators.