Tagged articles

PMR

2 articles · Page 1 of 1
Deepin Linux
Deepin Linux
Aug 20, 2026 · Fundamentals

Mastering C++ Allocators and PMR: Build Robust, High‑Performance Memory Management

The article explains why ordinary heap allocation can cause fragmentation and slowdown, introduces the C++ allocator interface and its allocate/deallocate functions, shows how to implement a custom stack‑based allocator, compares traditional allocators with C++17 polymorphic memory resources (PMR), and provides practical code examples, performance benchmarks, and best‑practice guidelines.

C++PMRallocator
0 likes · 30 min read
Mastering C++ Allocators and PMR: Build Robust, High‑Performance Memory Management
Deepin Linux
Deepin Linux
Jun 27, 2026 · Fundamentals

Five Fatal Flaws of std::allocator and How PMR Fixes Them All

The article explains that the default C++ std::allocator suffers from five critical defects—strong type binding, compile‑time strategy lock‑in, lack of memory pools, uncontrolled lifecycles, and redundant nested‑container allocation—leading to performance loss, fragmentation and leaks, and shows how C++17 polymorphic memory resources (PMR) redesign eliminates each flaw with a layered, runtime‑switchable architecture and three built‑in pool strategies.

C++17PMRmemory management
0 likes · 18 min read
Five Fatal Flaws of std::allocator and How PMR Fixes Them All