pub struct Effective {
pub purge: Option<Duration>,
pub purge_decommits: bool,
pub arena_eager_commit: i64,
pub allow_large_os_pages: bool,
pub transparent_huge_pages: bool,
pub arena_reserve: usize,
pub arena_max_object_size: usize,
}Expand description
The options mimalloc is running with, whether set by a Config, the
environment, or its defaults.
Fields§
§purge: Option<Duration>Arena purge delay (mimalloc’s purge delay times its arena multiplier),
or None if purging is disabled.
purge_decommits: boolWhether a purge decommits memory rather than resetting it.
arena_eager_commit: i64Arena commit policy as mimalloc stores it (0 lazy, 1 eager, 2 eager on systems that overcommit or when large OS pages are allowed).
allow_large_os_pages: boolWhether arenas may use large OS pages.
transparent_huge_pages: boolWhether mimalloc may use transparent huge pages.
arena_reserve: usizeBase size of arenas reserved on demand, before mimalloc grows it with the arena count.
arena_max_object_size: usizeLargest page carved from an arena: the configured limit rounded up to
a slice and clamped between one slice and ARENA_MAX_OBJECT_SIZE.
Implementations§
Trait Implementations§
impl Copy for Effective
impl Eq for Effective
impl StructuralPartialEq for Effective
Auto Trait Implementations§
impl Freeze for Effective
impl RefUnwindSafe for Effective
impl Send for Effective
impl Sync for Effective
impl Unpin for Effective
impl UnsafeUnpin for Effective
impl UnwindSafe for Effective
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