Crate tcmalloc_better

Source
Expand description

A drop-in global allocator wrapper around the TCMalloc allocator. TCMalloc is a general-purpose, performance-oriented allocator built by Google.

§Usage

use tcmalloc_better::TCMalloc;

#[global_allocator]
static GLOBAL: TCMalloc = TCMalloc;

§Feature flags

  • extension — TCMalloc extension API
  • std (enabled by default) — enable std

Structs§

TCMalloc
A memory allocator that can be registered as the standard library’s default through the #[global_allocator] attribute.