Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
meisel
· 1y ago · 0 comments
It could be improved even more, performance wise. The potentially expensive modulo could be avoided entirely with an if statement. Or, only use powers of 2 for the capacity, and then you can also use bit wise ops
Comments
No comments yet.
Better HN