Sets
jemalloc
as the#[global allocator]
on targets that support it.
Add it as a dependency:
# Cargo.toml
[dependencies]
jemallocator-global = "0.3.0"
and jemalloc
will be used as the #[global_allocator]
on targets that support
it.
force_global_jemalloc
(disabled by default): unconditionally setsjemalloc
as the#[global_allocator]
.
See jemallocator
's platform support.
For more information check out the jemallocator
crate.
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in jemallocator-global
by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.