r/programming • u/awesomePop7291 • Jul 23 '26
Everyone Should Know SIMD
https://mitchellh.com/writing/everyone-should-know-simd
413
Upvotes
r/programming • u/awesomePop7291 • Jul 23 '26
View all comments
Show parent comment
2
u/levodelellis Jul 23 '26 edited Jul 23 '26
Maybe I should explain more. I once saw it made my loop twice as fast. The simd it produce was 60+ instructions and so garbage that my 5 line solution was almost 8x faster
-Edit- 8x faster of the clang code, 16x faster than of the original. The words piece of shit was intentional