3 ms·
it's still somewhat perplexing the extent to which vectorized code is necessarily slower The vectorized code typically allocates all kinds of intermediate resu
by ced 11y ago
it's still somewhat perplexing the extent to which vectorized code is necessarily slower
The vectorized code typically allocates all kinds of intermediate results (more GC, more memory accesses). Apparently, turning it into loops is less trivial than it seems.
I'm thinking that the future of GPU enabled languages will mean vectorized code will be faster, so I prefer languages with a bias towards vectorisation.
I share that concern. Julia has some libraries to support GPU programming, but I don't know of any plans to have the core compiler take advantage of it.