From Jason Turner
Watch on YouTube

Summary

This episode explores C++17's Polymorphic Memory Resources (PMR) in-depth, following up on a previous introduction. Jason demonstrates how PMR can provide significant performance improvements for standard containers by reducing heap allocations through custom memory resources like monotonic_buffer_resource. He explains PMR's limitations, practical use cases, and why it's not a magic bullet but a powerful tool when used appropriately for scenarios where memory allocation patterns are predictable.

Resources

Tags