TCMalloc

TCMalloc 是 Google 对 C 的 malloc() 和 C++ 的 operator new 的定制实现,用于在我们的 C 和 C++ 代码中进行内存分配。TCMalloc 是一种快速的多线程 malloc 实现。「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.」

  • 所有者: google/tcmalloc
  • 平台: Linux
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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 is the official build system for TCMalloc.

The TCMalloc Platforms Guide contains information on
platform support for TCMalloc.

Documentation

All users of TCMalloc should consult the following documentation resources:

  • The TCMalloc Quickstart covers downloading, installing,
    building, and testing TCMalloc, including incorporating within your codebase.
  • The TCMalloc Overview covers the basic architecture of
    TCMalloc, and how that may affect configuration choices.
  • The TCMalloc Reference covers the C and C++ TCMalloc API
    endpoints.

More advanced usages of TCMalloc may find the following documentation useful:

  • The TCMalloc Tuning Guide covers the configuration choices
    in more depth, and also illustrates other ways to customize TCMalloc.
  • The TCMalloc Design Doc covers how TCMalloc works
    underneath the hood, and why certain design choices were made. Most developers
    will not need this level of implementation detail.

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.

主要指标

概览
名称与所有者google/tcmalloc
主编程语言C++
编程语言Starlark (语言数: 5)
平台
许可证Apache License 2.0
所有者活动
创建于2019-08-23 14:02:59
推送于2025-06-06 18:26:16
最后一次提交2025-06-06 11:24:48
发布数0
用户参与
星数4.7k
关注者数84
派生数509
提交数2.6k
已启用问题?
问题数208
打开的问题数44
拉请求数30
打开的拉请求数12
关闭的拉请求数26
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?