Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
delifue
3 months ago
|
parent
|
context
|
favorite
| on:
Shift-to-Middle Array: A Faster Alternative to Std...
If I keep removing one element in front and adding one element on back, then normal ring-buffer deque will involve no copying, but this will keep doing copying to empty space, so its performance could be much worse than deque if the queue is large.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: