自定义 Allocator、内存池与企业性能边界 | STL

本章覆盖:custom allocator complexity;alignment;exception safety;propagation;allocator equality;lifetime;thread safety;NUMA / huge pages 只建立高性能系统认知;third-party allocator;jemalloc / tcmalloc 等属于更高层工程选择;“自研 allocator”不是初级项目的炫技点;先 profiler,再优化分配策略。

本章知识点

  • custom allocator complexity
  • alignment
  • exception safety
  • propagation
  • allocator equality
  • lifetime
  • thread safety
  • NUMA / huge pages 只建立高性能系统认知
  • third-party allocator
  • jemalloc / tcmalloc 等属于更高层工程选择
  • “自研 allocator”不是初级项目的炫技点
  • 先 profiler,再优化分配策略