Tag

allocator

0 views collected around this technical thread.

Deepin Linux
Deepin Linux
Apr 19, 2025 · Fundamentals

Understanding C++ Memory Pools: Concepts, Design, and Implementation

This article explains the problems of memory fragmentation and allocation inefficiency in C++ programs, introduces the concept of memory pools, discusses their design principles, advantages, and common implementations, and provides a complete example of a thread‑safe fixed‑size memory pool with code.

C++Memory Managementallocator
0 likes · 29 min read
Understanding C++ Memory Pools: Concepts, Design, and Implementation
Deepin Linux
Deepin Linux
Dec 28, 2024 · Fundamentals

Design and Implementation of a High‑Performance C++ Memory Pool

This article explains the problems of frequent new/delete in C++, introduces memory‑pool concepts, details design principles, outlines a multi‑layer architecture (Thread Cache, Central Cache, Page Cache), provides a complete C++ implementation compatible with std::allocator, and discusses common pitfalls and performance considerations.

C++allocatormemory pool
0 likes · 45 min read
Design and Implementation of a High‑Performance C++ Memory Pool
Deepin Linux
Deepin Linux
Aug 18, 2023 · Fundamentals

Design and Implementation of a High‑Concurrency Memory Pool in C++

This article presents a comprehensive design and implementation of a high‑concurrency memory pool in C++, covering concepts such as fixed‑size block allocation, thread‑local caches, central and page caches, lock‑free techniques, span management, and performance benchmarking against standard malloc.

C++allocatorconcurrency
0 likes · 57 min read
Design and Implementation of a High‑Concurrency Memory Pool in C++