5 releases

0.2.1+2.16 Sep 28, 2024
0.2.0+2.15 Apr 7, 2024
0.1.2+2.13 Sep 18, 2023
0.1.1+2.10 Aug 2, 2023
0.1.0+2.10 Aug 2, 2023

#472 in Memory management

Download history 203/week @ 2024-09-28 9/week @ 2024-10-05 2/week @ 2024-11-09 2/week @ 2024-11-16 39/week @ 2024-12-07 121/week @ 2024-12-14

277 downloads per month

MIT/Apache

7KB
92 lines

TCMalloc-rs

crates.io

Rust FFI bindings to TCMalloc.

Dependencies

libstdc++, libclang and libunwind must be installed on the system.

How to Use

use tcmalloc2::TcMalloc;

#[global_allocator]
static GLOBAL: TcMalloc = TcMalloc;

No runtime deps

~0–2MB
~38K SLoC