Struct tikv_jemalloc_ctl::opt::tcache
source · pub struct tcache;
Expand description
Thread-local allocation caching behavior.
Thread-specific caching allows many allocations to be satisfied without performing any thread synchronization, at the cost of increased memory use. This is enabled by default.
§Examples
use tikv_jemalloc_ctl::opt;
let tcache = opt::tcache::read().unwrap();
println!("thread-local caching: {}", tcache);
Implementations§
Auto Trait Implementations§
impl Freeze for tcache
impl RefUnwindSafe for tcache
impl Send for tcache
impl Sync for tcache
impl Unpin for tcache
impl UnwindSafe for tcache
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more