r/programming • • Jul 23 '26

Everyone Should Know SIMD

https://mitchellh.com/writing/everyone-should-know-simd
413 Upvotes

82 comments sorted by

View all comments

Show parent comment

8

u/_lerp Jul 24 '26

Have you written much simd? I hand rolled a separable convolution filter and vastly out performed clang and msvc in SSE3 and NEON. This was the core of the product, we had a scalar implementation (which the compiler vectorized) we could trivially switch between and the difference was obvious.

To be fair, we never cared about the performance of the scalar implementation and only optimized the simd path. Some things were going beyond just simd, i.e. worrying about memory layout for cache locality etc.