{"id":57982,"library":"tikv-jemallocator","title":"tikv-jemallocator","description":"A Rust allocator backed by jemalloc, providing a drop-in replacement for the system allocator.","status":"active","version":"0.7.0","language":"rust","source_language":null,"source_url":"https://github.com/tikv/jemallocator","tags":["allocator","jemalloc","performance","memory"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntikv-jemallocator = \"0.7.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tikv-jemallocator","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Jemalloc","correct":"use tikv_jemallocator::Jemalloc;"}],"quickstart":{"code":"use tikv_jemallocator::Jemalloc;\n\n#[global_allocator]\nstatic GLOBAL: Jemalloc = Jemalloc;\n\nfn main() {\n    let v = vec![1, 2, 3];\n    println!(\"Using jemalloc: {:?}\", v);\n}","lang":"rust","description":"Sets jemalloc as the global allocator for the program."},"warnings":[{"fix":"Test thoroughly in your target environment; consider using `#[global_allocator]` only in the main binary, not in libraries.","message":"Using jemalloc may cause issues with certain system libraries or when debugging memory issues.","severity":"gotcha","affected_versions":">=0.5.0"}],"env_vars":null,"search_vec":"'alloc':6,19,20 'back':7 'drop':13 'drop-in':12 'jemalloc':3,9,21 'memori':23 'perform':22 'provid':10 'replac':15 'rust':5 'system':18 'tikv':2 'tikv-jemalloc':1","created_at":"2026-06-16T16:07:07.849629+00:00","updated_at":"2026-06-16T16:07:07.849629+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/tikv/jemallocator","github":"https://github.com/tikv/jemallocator","docs":"https://docs.rs/tikv-jemallocator/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}