Skip to content

resizable_memory is slow to grow #7

@stkenned-havok

Description

@stkenned-havok

Repro: create a large reserved region. Grow the committed region by a small amount each time.

Expected: time is proportional to the size delta.
Actual: time is proportional to the current total size

Seems to be related to passing the entire (0, newsize) to VirtualAlloc, giving quadratic resizing time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions