Registry / utility / jemallocator

jemallocator

JSON →
library0.5.4rscratesunverified

A Rust allocator backed by jemalloc.

# Cargo.toml [dependencies] jemallocator = "0.5.4"
INSTALL
IMPORT
SIG · JEMALLOCATOR
J
jemallocator
utilityrustv0.5.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Jemalloc
use jemallocator::Jemalloc;

Sets jemalloc as the global allocator and uses it for a simple allocation.

use jemallocator::Jemalloc; #[global_allocator] static GLOBAL: Jemalloc = Jemalloc; fn main() { let mut v = Vec::new(); v.push(1); println!("Allocated with jemalloc"); }
Debug
Known issues
gotchajemalloc may not be available on all platforms (e.g., Windows without specific features).
fix
Enable the 'disable_initial_exec_tls' feature on Windows or use a different allocator.
affects: >=0.5.0
Upgrade
Version history
0.5.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
jemallocator — cargo add jemallocator · libregistry