Constant libmimalloc_sys::mi_option_page_reset[][src]

pub const mi_option_page_reset: mi_option_t = 10;

Option (experimental) to reset page memory after mi_option_reset_delay milliseconds when it becomes free.

By default, mimalloc will reset (or purge) OS pages that are not in use, to signal to the OS that the underlying physical memory can be reused. This can reduce memory fragmentation in long running (server) programs. By setting it to 0 this will no longer be done which can improve performance for batch-like programs. As an alternative, the mi_option_reset_delay= can be set higher (100ms by default) to make the page reset occur less frequently instead of turning it off completely.

Default: 1 (true)