3 releases

Uses new Rust 2024

new 0.1.2 May 25, 2025
0.1.1 May 25, 2025
0.1.0 May 25, 2025

#491 in Memory management

Download history

62 downloads per month
Used in tcmalloc-better

MIT license

3MB
64K SLoC

C++ 58K SLoC // 0.2% comments Bitbake 5K SLoC // 0.1% comments GNU Style Assembly 404 SLoC // 0.4% comments Rust 243 SLoC C 9 SLoC // 0.7% comments

TCMalloc better

A Rust wrapper over Google's TCMalloc memory allocator

Latest Version Documentation

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;

Requirements

A C++ compiler is required for building TCMalloc with cargo.

Dependencies