> Could you please explain why the iterator version is so much faster? Is > it simply from avoiding temporary array allocation? >
That's what I understand, and maybe marginally because there is only one pass over the data.
> Could you please explain why the iterator version is so much faster? Is > it simply from avoiding temporary array allocation? >
That's what I understand, and maybe marginally because there is only one pass over the data.