News for hackers. Stuff that matters.
Re:A 94x speed improvement demonstrated using handwritten as... by flohofwoe on Monday November 04, 2024 @09:20AM (#42041734)
Hmm right, makes sense. I do wonder though if actually making use of the high level convenience then can harm performance again, e.g. let's say I'm building intrinsic parameters with regular C scalar expressions, or use if-else control flow between intrinsics. Convenient to do, but can't be great for performance versus fully simdified code.
Re:A 94x speed improvement demonstrated using handwritten as... by janwas on Monday November 04, 2024 @09:57AM (#42042080)
Sure, we generally don't want branches in the code.

What makes intrinsics really interesting is that you can use wrapper libraries such as our Highway, then the code actually is portable and efficient.