> - What is the overhead of traditional “vectorized” code? Isn’t vectorized code supposed to be fast already?
- Ordinary vectorized code is fast, but not as fast as a hand-written loop (assuming loops are efficiently compiled, as in Julia) because each vectorized operation generates a new temporary array and executes a separate loop, leading to a lot of overhead when multiple vectorized operations are combined.