Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rurban
· 4y ago · 0 comments
he should really tested against a deque too, not the two extremes only.
Comments
[–]
codesnik
4y ago
then he should test it against ringbuffers, IMHO.
[–]
rurban
OP
4y ago
ringbuffers are just needed for concurrent access or tiny/static ram/kernels. his tests are just simple ordinary perf tests for the cost of pointer chasing. That's why deques were invented, to give you the best of both. Similar to a B-Tree.