Crate tikv_jemallocator_global

Crate tikv_jemallocator_global 

Source
Expand description

Sets jemalloc as the #[global_allocator] on targets that support it.

Just add jemallocator-global as a dependency:

# Cargo.toml
[dependencies]
jemallocator-global = "0.6.0"

and jemalloc will be used as the #[global_allocator] on targets that support it.

To unconditionally set jemalloc as the #[global_allocator] enable the force_global_jemalloc cargo feature.

Staticsยง

JEMALLOC
Sets jemalloc as the #[global_allocator].