Hacker GitHub

← All repos

google/tcmalloc

View on GitHub ↗ ★ 5,397 C++

24 mentions on Hacker News by 18 people: 5 stories, 19 comments · first 2020-02-10 · latest 2026-09-18

Mentions per year 24 mentions · busiest year 2020 (7)
20082026
  1. …diverged quite a while ago. doesn’t have a lot of the fancier features of modern tcmalloc [0]. [0]: https://github.com/google/tcmalloc/blob/master/docs/gperftoo...
    comment by skavi · 2026-09-18 · in Comparison of Malloc() Algorithms
  2. no article, sorry, grabbed the numbers from an old PR. to confirm, you were using tcmalloc from https://github.com/google/tcmalloc and not from https://github.com/gperftools/gperftools , right? the latter is a lot worse iiuc.
    comment by skavi · 2026-09-18 · in Comparison of Malloc() Algorithms
  3. …executors (sometimes multiple in the same application). so relatively high thread counts. [0]: https://github.com/google/tcmalloc/blob/master/docs/design.m...
  4. …2.2.4: 325,184 KB, 290 ms tcmalloc: 178,688 KB, 200 ms jemalloc: 264,688 KB, 230 ms tcmalloc was from github.com/google/tcmalloc/tree/24b3f29. i don't recall which jemalloc was tested.
  5. …and stats, but you have to understand the implementation deeply to make sense of the stats. https://github.com/google/tcmalloc/blob/master/docs/stats.md
  6. …memory from a huge-page-aware allocator. 1: https://dl.acm.org/doi/pdf/10.1145/3342195.3387524 2: https://github.com/google/tcmalloc/blob/master/docs/tuning.m...
    comment by jeffbee · 2025-06-14 · in Jemalloc Postmortem
  7. …optimization engineers aiming to improve performance of important internal servers. Extracting it to github.com/google/tcmalloc was complex due to intricate dependencies ( https://abseil.io/blog/20200212-tcmalloc ). As internal performance…
    comment by MaskRay · 2025-06-13 · in Jemalloc Postmortem
  8. …and six years old. Nowadays, there are at least two different versions of tcmalloc: the one from https://github.com/google/tcmalloc/ is newer (it has rseq support, for example), and the version bundled in…
    comment by fweimer · 2025-04-13 · in Battle of the Mallocators
  9. …probably only seen the gperftools version of it. This is the version Google now uses internally: https://github.com/google/tcmalloc It's worth a fresh look. In particular, it supports per-CPU caches as an alternative to per-thread caches.…
  10. …a stock kernel, it's 511. TCMalloc's docs recommend using max_ptes_none set to 0 for this reason: https://github.com/google/tcmalloc/blob/master/docs/tuning.m... (Disclosure: I work on TCMalloc and authored the above doc.)
  11. …link your program against TCMalloc and forget about it. Literally free money. Highly recommended. https://github.com/google/tcmalloc
    comment by jeffbee · 2023-01-22 · in Huge pages are a good idea
  12. …about the old tcmalloc from 2006 that should never be used anymore. There is also a new tcmaloc: https://github.com/google/tcmalloc/ If you are in doubt, you should simply use what ClickHouse is using.
  13. …instead MADV_DONTNEED. (You can find munmap in tcmalloc, but it's not being used to free memory.) https://github.com/google/tcmalloc/blob/48808681a9f38e974b49...
  14. …otherwise only mmap(2) is used." Also, Google's tcmalloc uses mmap to get system memory: https://github.com/google/tcmalloc/blob/master/docs/design.m... "An allocation for k pages is satisfied by looking in the kth free list. If that free…
  15. …also gets stupid complicated when you add in what kind of malloc you use, c.f. google's tcmalloc: https://github.com/google/tcmalloc
    comment by joatmon-snoo · 2021-09-13 · in Comp.lang.c Frequently Asked Questions
  16. …also the pending CL numbers (same concept as Perforce). The number I'm quoting includes both. [1] https://github.com/google/tcmalloc/commit/6f42c40d6ebcf2aeb8...
  17. …libraries like tcmalloc [1] and jemalloc [2]. [0] https://stackoverflow.com/a/262481/1111557 [1] https://github.com/google/tcmalloc [2] https://github.com/jemalloc/jemalloc
  18. …there's more to it than this, but I know there are multiple implementations of malloc out there: - https://github.com/google/tcmalloc - https://github.com/jemalloc/jemalloc
  19. Have you seen the recently updated GitHub project: https://github.com/google/tcmalloc
    comment by alexhutcheson · 2020-03-05 · in Glibc malloc inefficiency (2016)