You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a configurable growth step for resizable memory blocks #128
/// Возможно нужна настройка, определяющая блоками какого размера растёт блок памяти.
Original comment:
Возможно нужна настройка, определяющая блоками какого размера растёт блок памяти.
(Perhaps a setting is needed that defines the size of the chunks by which the memory block grows.)
Current behaviour:
The memory only grows when the caller sets ReservedCapacity. The only built-in granularity is MinimumCapacity (Environment.SystemPageSize in C#), and the file-mapped constructors round up to minimumReservedCapacity (see #87).
Suggestion:
Add a configurable growth policy (fixed step in bytes or pages, or a growth factor) that implementations and helpers such as Reserve(additional) use when more capacity is needed. Default to the current behaviour.
Activity