3 ms·
Vector operations are not slow - they are basically the same as python/R (compiled down to C). However, devectorization (i.e. replacing vector ops with a for-l
by yummyfajitas 11y ago
Vector operations are not slow - they are basically the same as python/R (compiled down to C).
However, devectorization (i.e. replacing vector ops with a for-loop) is sometimes a performance improvement because Julia can usually provide C-like speeds in for-loops and avoid creating intermediate arrays.