Skip to content

Default reserve size #2

Description

@holocronweaver

I would like to suggest adding a user-configurable default reserve size which applies to all future allocations, including types which have not been registered yet.

Motivation: As is, having to explicitly reserve<EachSubType>(theSameValue) somewhat defeats the polymorphic goal of the library. In most of my use cases, I simply want to set a per-segment initial size and leave it at that.

I like having the option of performing per-segment reserves if I choose, so I think leaving reserve as-is is fine, and adding a setDefaultReserve would solve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions