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

#440 in Memory management

Download history 9/week @ 2024-09-20 196/week @ 2024-09-27 15/week @ 2024-10-04 1/week @ 2024-10-11 2/week @ 2024-11-08 2/week @ 2024-11-15 37/week @ 2024-12-06 123/week @ 2024-12-13

160 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