Thanks, will look into it.
btw, I just found a similar discussion about zipping iterators where I found out that by turning my slices into explicitly sized ones (let src = &src[..SIZE]
) I can eliminate bounds checks during the loop and make index
as fast as push_all
.
Still, what bothers me the most, is the iterator-based code. It's too idiomatic to be slow!