Registry / utility / rpmalloc

rpmalloc

JSON →
library0.2.2rscratesunverified

Cross-platform global memory allocator using rpmalloc.

# Cargo.toml [dependencies] rpmalloc = "0.2.2"
INSTALL
IMPORT
SIG · RPMALLOC
R
rpmalloc
utilityrustv0.2.2
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.

RPMallocAllocator
use rpmalloc::RPMallocAllocator;

Set rpmalloc as the global allocator.

use rpmalloc::RPMallocAllocator; #[global_allocator] static ALLOCATOR: RPMallocAllocator = RPMallocAllocator; fn main() { let v = vec![1, 2, 3]; println!("{:?}", v); }
Debug
Known issues
gotchaMay not be compatible with all platforms or allocator-dependent crates.
fix
Test thoroughly on your target platform; consider using only for performance-critical sections.
affects: >=0.2.0
Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
rpmalloc — cargo add rpmalloc · libregistry