Skip to content
Tagged articles

thread-local storage

4 articles · Page 1 of 1
Deepin Linux
Deepin Linux
Oct 14, 2026 · Fundamentals

Why False Sharing Slows Multi-Threaded Code Despite No Shared Data

This article explains how false sharing occurs when independent threads modify variables on the same CPU cache line, triggering MESI protocol overhead that degrades performance, and covers detection methods using perf and VTune plus mitigation techniques like cache-line padding and thread-local storage.

CPU cacheMESI protocolcache line
0 likes · 22 min read
Why False Sharing Slows Multi-Threaded Code Despite No Shared Data
GrowingIO Tech Team
GrowingIO Tech Team
Mar 3, 2022 · Mobile Development

Unveiling iOS AutoreleasePool Changes: TLS Magic and Compiler Optimizations

This article explores the evolution of the iOS main.m AutoreleasePool since Xcode 11, explains how Thread‑Local Storage and compiler optimizations like tail‑call elimination affect object lifetimes, and demonstrates practical code examples and assembly insights for developers seeking deeper memory‑management understanding.

AutoreleasePoolTail Call Eliminationcompiler optimization
0 likes · 14 min read
Unveiling iOS AutoreleasePool Changes: TLS Magic and Compiler Optimizations
Tencent Cloud Developer
Tencent Cloud Developer
Mar 11, 2021 · Fundamentals

High-Performance Object Pool Design and Implementation

The article presents a high‑performance, thread‑safe object pool that combines thread‑local freelists, a global pool, and cache‑line‑aligned structures to reuse expensive objects, dynamically expand capacity, and achieve 50‑70% lower allocation latency than standard malloc/free and existing pool implementations.

C++lock optimizationobject pool
0 likes · 23 min read
High-Performance Object Pool Design and Implementation
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.

C++backend developmentmalloc
0 likes · 14 min read
Why Standard malloc Slows You Down and How Custom Memory Pools Supercharge Performance