4 ms·
> Optimizations are only possible if iterator-style APIs are used They make it simpler, but it also is possible to detect that loops are iteration-style access
by Someone 3y ago
> Optimizations are only possible if iterator-style APIs are used
They make it simpler, but it also is possible to detect that loops are iteration-style access in disguise.
That takes time, so its more likely to happen in ahead of time compiled languages.
C compilers can vectorize some of such loops, so they have logic for doing that.