https://github.com/google/tcmalloc
https://github.com/google/tcmalloc
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/google/tcmalloc
- Owner: google
- License: apache-2.0
- Created: 2019-08-23T14:02:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-05-08T15:37:33.000Z (9 months ago)
- Last Synced: 2025-05-08T16:44:57.907Z (9 months ago)
- Language: C++
- Size: 7.33 MB
- Stars: 4,689
- Watchers: 84
- Forks: 506
- Open Issues: 54
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-cpp - TCMalloc - Google's fast, multi-threaded malloc implementation. [Apache-2.0] 🌎 [website](google.github.io/tcmalloc/) (Memory Allocation)
- stars - google/tcmalloc
- awesome-high-performance-computing - tcmalloc memory allocator
- cpp-learning-2025 - tcmalloc - performance allocator (Tools / Memory & Performance Tools)
- awesome-cpp - TCMalloc - Google's fast, multi-threaded malloc implementation. [Apache-2.0] [website](https://google.github.io/tcmalloc/) (Memory Allocation)
README
# TCMalloc
This repository contains the TCMalloc C++ code.
TCMalloc is Google's customized implementation of C's `malloc()` and C++'s
`operator new` used for memory allocation within our C and C++ code. TCMalloc is
a fast, multi-threaded malloc implementation.
## Building TCMalloc
[Bazel](https://bazel.build) is the official build system for TCMalloc.
The [TCMalloc Platforms Guide](docs/platforms.md) contains information on
platform support for TCMalloc.
## Documentation
All users of TCMalloc should consult the following documentation resources:
* The [TCMalloc Quickstart](docs/quickstart.md) covers downloading,
installing, building, and testing TCMalloc, including incorporating within
your codebase.
* The [TCMalloc Overview](docs/overview.md) covers the basic architecture of
TCMalloc, and how that may affect configuration choices.
* The [TCMalloc Reference](docs/reference.md) covers the C and C++ TCMalloc
API endpoints.
More advanced usages of TCMalloc may find the following documentation useful:
* The [TCMalloc Tuning Guide](docs/tuning.md) covers the configuration
choices in more depth, and also illustrates other ways to customize
TCMalloc. This also covers important operating system-level properties for
improving TCMalloc performance.
* The [TCMalloc Design Doc](docs/design.md) covers how TCMalloc works
underneath the hood, and why certain design choices were made. Most
developers will not need this level of implementation detail.
* The [TCMalloc Compatibility Guide](docs/compatibility.md) which documents
our expectations for how our APIs are used.
## License
The TCMalloc library is licensed under the terms of the Apache license. See
LICENSE for more information.
Disclaimer: This is not an officially supported Google product.