Tagged articles

cache locality

4 articles · Page 1 of 1
IT Services Circle
IT Services Circle
Sep 13, 2026 · Backend Development

Hidden Costs of C++ Containers: Why Memory Layout Beats Big-O

This article reveals how C++ STL containers like vector, list, map, and unordered_map incur hidden performance costs through memory layout, cache locality, pointer chasing, and rehash overhead, demonstrating that theoretical time complexity often misleads because cache misses dominate real-world performance.

C++Performance OptimizationSTL
0 likes · 13 min read
Hidden Costs of C++ Containers: Why Memory Layout Beats Big-O
IT Services Circle
IT Services Circle
Nov 7, 2025 · Backend Development

Why C++23’s std::flat_map and std::flat_set Boost Performance and Cache Locality

Introduced in C++23, std::flat_map and std::flat_set replace tree‑based maps and sets with vector‑backed, flat containers that offer superior cache locality, faster traversal for small‑to‑medium data sets, and reduced memory overhead, though they incur O(N) insertion costs and iterator invalidation.

C++23cache localitycontainer performance
0 likes · 6 min read
Why C++23’s std::flat_map and std::flat_set Boost Performance and Cache Locality
Tencent Architect
Tencent Architect
Dec 8, 2017 · Databases

Modern Processors, Emerging Storage, and Database System Design: Challenges and Opportunities

This article reviews the evolution of modern multi‑core processors and non‑volatile memory, analyzes their impact on database system architecture, discusses cache‑friendly designs, distributed logging, and benchmark results, and highlights the opportunities and challenges for DBMS developers in the era of NVRAM.

Non-volatile MemoryPerformance Optimizationbenchmarking
0 likes · 17 min read
Modern Processors, Emerging Storage, and Database System Design: Challenges and Opportunities