Re:AVX2 is slower than SSE2-4.x under Windows ARM emulation
by arka2147483647 on Wednesday February 18, 2026 @05:35PM
(#47067378)
Surely you could have compiler types for 128, 256, 512, etc, and then choose the correct codepath with simple if statement at runtime?
SVE theoretically supports hardware up to 2048-bit, so conservatively reserving the worst-case size at compile time would be pretty wasteful. That's 16x overhead in the base case of 128-bit hardware.