pub trait GlobalTlsfOptions {
    const ENABLE_REALLOCATION: bool = true;
    const COALESCE_POOLS: bool = true;
}
Available on WebAssembly and non-target feature atomics, or Unix only.
Expand description

The options for GlobalTlsf.

Provided Associated Constants§

source

const ENABLE_REALLOCATION: bool = true

Enables the specialized reallocation routine. This option might improve the memory usage and runtime performance but increases the code size considerably.

It’s enabled by default.

source

const COALESCE_POOLS: bool = true

Instructs the allocator to coalesce consecutive system memory allocations into one large memory pool whenever possible.

Warning: If you are going to create allocations larger than or roughly as large as the system page size, turning off this option can cause an excessive memory usage.

It’s enabled by default.

Implementations on Foreign Types§

source§

impl GlobalTlsfOptions for ()

Implementors§