Settings

Theme

Announcing TCMalloc

abseil.io

9 points by ckennelly · 3 comments

Reader

2 threads
zmodem

How does this relate to the other tcmalloc: https://gperftools.github.io/gperftools/tcmalloc.html ?

  • ckennellyOP

    This is the modern version--based on Abseil--that we use in production for practically every C++ binary. It includes a number of performance optimizations (per-CPU caches, an improved fast/slow path, and a hugepage-aware backed), along with improved telemetry (a low overhead, always-on heap profiler, for example).

    gperftools includes a decade+ old copy of TCMalloc and several other things (a signal-based CPU profiler, a heap checker, etc.). The two have diverged significantly.

thedance

I hope people give this a shot despite the fact that jemalloc has a ton of mindshare these days. In particular I hope people try to integrate this allocator into their program, rather that just replacing malloc via LD_PRELOAD, since most of the benefits come from _building with_ tcmalloc.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection