Главная
Study mode:
on
1
Introduction
2
Trick question
3
Read the code
4
Outline
5
Fragmentation
6
Complexity
7
Synchronized Pool
8
Unsynchronized Pool
9
Logging Resource
10
Setting Default Resource
11
Example
12
Undefined Behavior
13
Exception Safety
14
Polymorphic
15
Alligator Awareness
16
Default constructor
17
PMR Dirty Little Secret
Description:
Explore the intricacies and potential drawbacks of C++17's std::pmr (polymorphic memory resource) in this comprehensive conference talk from C++Now 2018. Delve into how polymorphic allocators interact with move semantics, unit testing, performance, developer productivity, and reliability in large codebases. Gain insights on fragmentation, complexity, synchronized and unsynchronized pools, logging resources, and setting default resources. Examine code examples demonstrating undefined behavior, exception safety, and polymorphic allocator awareness. Learn about the "PMR Dirty Little Secret" and receive concrete recommendations for when and how to use std::pmr effectively in your projects. Whether you're new to allocators or an experienced developer, acquire valuable knowledge about the subtle consequences of polymorphic allocator use at scale.

C++17's std::pmr Comes With a Cost

CppNow
Add to list
00:00
-00:49