Tagged articles
26 articles
Page 1 of 1
Deepin Linux
Deepin Linux
May 11, 2026 · Fundamentals

Eliminate Memory Fragmentation: Understanding Memory Pools

The article explains how frequent dynamic allocations cause external and internal memory fragmentation, illustrates the problem with C++ examples, and shows that pre‑allocating a large contiguous block as a memory pool—managed via block division, free‑list tracking, and thread‑safe operations—significantly reduces fragmentation, improves allocation speed, and boosts concurrency performance.

CMemory FragmentationPerformance Optimization
0 likes · 30 min read
Eliminate Memory Fragmentation: Understanding Memory Pools
php Courses
php Courses
Sep 22, 2025 · Fundamentals

Boost C++ Performance: Proven Memory Management Techniques You Must Use

This article explores why efficient memory management is crucial for C++ performance and presents practical strategies—including stack allocation, RAII, smart pointers, custom memory pools, optimal containers, move semantics, and diagnostic tools—to write faster, more robust programs.

CPerformance OptimizationRAII
0 likes · 9 min read
Boost C++ Performance: Proven Memory Management Techniques You Must Use
Deepin Linux
Deepin Linux
Jul 17, 2025 · Fundamentals

Unlock Faster C++ Performance: Master Memory Pools and Eliminate Fragmentation

This article explains why traditional C++ new/delete memory management leads to internal and external fragmentation and performance loss, introduces the concept and principles of memory pools, compares various pool implementations, and provides a complete, thread‑safe example that integrates with std::allocator for high‑efficiency allocation.

AllocatorCMemory Management
0 likes · 29 min read
Unlock Faster C++ Performance: Master Memory Pools and Eliminate Fragmentation
Deepin Linux
Deepin Linux
Jun 30, 2025 · Fundamentals

Boost C++ Performance with Fixed-Size Memory Pools: Theory and Code

This article explains why frequent dynamic memory allocation can cause slowdown and fragmentation, introduces fixed-size memory pools as an efficient solution, details their core principles, data structures, key allocation and deallocation functions, and demonstrates their performance advantage with C++ code examples and benchmarks.

CMemory Fragmentationcustom allocator
0 likes · 20 min read
Boost C++ Performance with Fixed-Size Memory Pools: Theory and Code
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.

AllocatorC++memory pool
0 likes · 29 min read
Understanding C++ Memory Pools: Concepts, Design, and Implementation
Deepin Linux
Deepin Linux
Mar 21, 2025 · Fundamentals

Understanding Memory Pools: Concepts, Implementations, and Practical Use Cases

This article explains the concept of memory pools, how they reduce allocation overhead and fragmentation compared to traditional malloc/new, describes various pool designs and Linux kernel APIs, provides multiple C and C++ implementations, and discusses performance benefits and typical application scenarios such as servers, real‑time and embedded systems.

C++Linux kernelallocation
0 likes · 40 min read
Understanding Memory Pools: Concepts, Implementations, and Practical Use Cases
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 22, 2024 · Backend Development

Designing a High‑Performance bytes.Buffer Pool for GWS in Go

This article explores the internal structure and growth mechanism of Go's bytes.Buffer, demonstrates how the GWS library replaces gorilla/websocket, and presents a high‑performance bytes.Buffer pool implementation using sync.Pool with power‑of‑two sizing to reduce allocations and improve concurrency in backend services.

Gobytes.Buffermemory pool
0 likes · 25 min read
Designing a High‑Performance bytes.Buffer Pool for GWS in Go
Deepin Linux
Deepin Linux
Aug 5, 2024 · Fundamentals

Understanding Linux Kernel Memory Pools and Their Implementation

This article explains the concept, benefits, and implementation details of memory pools in the Linux kernel, covering allocation functions, design principles, common strategies, and a thread‑safe C++ memory‑pool class with example code.

C++Linux kernelallocation
0 likes · 27 min read
Understanding Linux Kernel Memory Pools and Their Implementation
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++Thread Cacheconcurrency
0 likes · 57 min read
Design and Implementation of a High‑Concurrency Memory Pool in C++
IT Services Circle
IT Services Circle
Mar 15, 2022 · Backend Development

Understanding Pooling Techniques: Thread Pools, Memory Pools, Database Connection Pools, and HttpClient Pools in Java

This article explains the concept of pooling technology, its advantages, and its practical applications in Java—including thread pools, memory pools, database connection pools, and HttpClient connection pools—while highlighting how these techniques improve performance, resource utilization, and system stability.

Connection PoolJavaResource Management
0 likes · 10 min read
Understanding Pooling Techniques: Thread Pools, Memory Pools, Database Connection Pools, and HttpClient Pools in Java
IT Architects Alliance
IT Architects Alliance
Jun 27, 2021 · Backend Development

Why Nginx’s Modular, Event‑Driven Architecture Powers High‑Performance Servers

This article breaks down Nginx’s high‑performance architecture, covering its modular design, event‑driven processing, multi‑stage asynchronous request handling, master‑worker process model, and memory‑pool strategy, and explains how each component contributes to scalability, low latency, and efficient resource utilization.

BackendEvent-drivenNginx
0 likes · 10 min read
Why Nginx’s Modular, Event‑Driven Architecture Powers High‑Performance Servers
Java High-Performance Architecture
Java High-Performance Architecture
May 29, 2021 · Backend Development

Unlocking Nginx Performance: Inside Its Modular, Event‑Driven Architecture

This article explains how Nginx achieves high performance through its modular design, event‑driven architecture, multi‑stage asynchronous request handling, master‑worker process model, and efficient memory‑pool implementation, contrasting it with traditional web servers and illustrating each concept with diagrams.

Backend PerformanceEvent-Driven ArchitectureNginx
0 likes · 9 min read
Unlocking Nginx Performance: Inside Its Modular, Event‑Driven Architecture
Architecture Digest
Architecture Digest
May 27, 2021 · Backend Development

Nginx Architecture Overview: Modular Design, Event‑Driven Model, Multi‑Stage Asynchronous Processing, Master/Worker Processes, and Memory Pool

This article explains Nginx's high‑performance architecture, covering its modular design, event‑driven processing, multi‑stage asynchronous request handling, master‑worker process model, and memory‑pool implementation, illustrating how these components together achieve scalability and low latency.

Backend DevelopmentWeb servermemory pool
0 likes · 10 min read
Nginx Architecture Overview: Modular Design, Event‑Driven Model, Multi‑Stage Asynchronous Processing, Master/Worker Processes, and Memory Pool
Liangxu Linux
Liangxu Linux
Feb 6, 2021 · Backend Development

Why Standard malloc Slows You Down and How Custom Memory Pools Supercharge Performance

Although malloc is a universal allocator, its lack of scenario-specific optimization makes it unsuitable for high‑performance server applications; this article explains malloc’s internal workflow, compares it with custom memory‑pool techniques, and details various pool designs, thread‑safety strategies, and an interesting cross‑thread free problem.

Backend DevelopmentC++Memory Management
0 likes · 14 min read
Why Standard malloc Slows You Down and How Custom Memory Pools Supercharge Performance
58 Tech
58 Tech
Oct 21, 2020 · Backend Development

Understanding Java Memory Pools: Netty’s Implementation and Underlying Theory

This article revisits memory allocation and reclamation concepts by examining Java's Netty memory pool implementation, its theoretical basis in jemalloc, and practical design choices such as arena allocation, thread‑local caches, pool chunks, sub‑pages, and multi‑threaded performance considerations.

Garbage CollectionJavaNetty
0 likes · 21 min read
Understanding Java Memory Pools: Netty’s Implementation and Underlying Theory
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Aug 2, 2020 · Backend Development

Understanding Pooling Techniques: Thread Pools, Memory Pools, Connection Pools, and HttpClient Pools in Java

This article explains the concept of pooling technology in Java, illustrating its benefits through real‑world analogies, detailing thread pools, memory pools, database connection pools, and HttpClient pools, and provides a performance comparison between raw threads and thread pools using a Java benchmark.

BackendConnection PoolJava
0 likes · 11 min read
Understanding Pooling Techniques: Thread Pools, Memory Pools, Connection Pools, and HttpClient Pools in Java
Architecture Digest
Architecture Digest
Dec 12, 2019 · Backend Development

Nginx Architecture Overview: Modular Design, Event‑Driven Model, Multi‑Stage Asynchronous Processing, and Process Management

This article explains Nginx's high‑performance architecture, covering its modular design, event‑driven processing, multi‑stage asynchronous request handling, master‑worker process model, and memory‑pool mechanism, and compares it with traditional web servers.

Event-Driven ArchitectureNginxWeb server
0 likes · 10 min read
Nginx Architecture Overview: Modular Design, Event‑Driven Model, Multi‑Stage Asynchronous Processing, and Process Management
ITPUB
ITPUB
Nov 6, 2016 · Fundamentals

How Linux Kernel Memory Pools Work: Structures, Creation, and Allocation

This article explains the concept of Linux kernel memory pools, details the mempool_t structure, shows how to create and destroy a mempool, and walks through the allocation and free functions with code examples, highlighting their role in preventing allocation failures under memory pressure.

CMempoolmemory pool
0 likes · 8 min read
How Linux Kernel Memory Pools Work: Structures, Creation, and Allocation