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.