Skip to content

Add a configurable growth step for resizable memory blocks #128

Backlog

Description

@konard

Source:

/// Возможно нужна настройка, определяющая блоками какого размера растёт блок памяти.

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.

Related: #127 (ReservedCapacity redesign), #87, #100.


Converted from the <remarks> comment of IResizableDirectMemory that was moved to #15 (commit e5aa08e).

Activity

  1. added
    enhancement
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions