Skip to content

Increase capacity of internal buffer for Queues when buffer is full #641

@sanmut

Description

@sanmut

On an enqueue operation when the internal buffer is full, the buffer is always resized by one more in size. It is a good idea to increase the capacity (by some heuristic, say double it until certain size and then add by certain size thereafter) so that the subsequent queue operations will not incur a memory allocation (and potentially moving of elements during insertion) performance hit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions