Skip to content

Compact method and auto compacting configuration need to be supported in Deque #92

@zrwusa

Description

@zrwusa

Is your feature request related to a problem? Please describe.
Similar to a Queue, this Deque manages elements and marks the starting position through bucket management to accelerate operations on the front elements of the dynamic array. Since its design philosophy is to trade space for time, it also requires manual or automatic space release to avoid memory usage issues.

Describe the solution you'd like
Therefore, it's necessary to add an autoCompact option in the configuration. Additionally, a manual compression method compact is also supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions