|
|
|
|
|
by senfiaj
432 days ago
|
|
I'm am the author of this blog. As for speed, you are probably right, I was mainly talking about wasting memory for temporary arrays, not the speed, it's unlikely that iterators are faster. But I'm curious, how large arrays did you test with? For example, will there be a memory difference for 10M size arrays. |
|
Right, but the runtime is perfectly capable of optimizing those temporary arrays out, which it appears to do.
> I'm curious, how large arrays did you test with? For example, will there be a memory difference for 10M size arrays
10M size arrays are exactly what I tested with