3 ms·
Cool library. This sounds like SWAR (simd within a register). I’ve seen these techniques give a nice speed up especially when SIMD isn’t available or a pain (
by gwittel 3y ago
Cool library. This sounds like SWAR (simd within a register). I’ve seen these techniques give a nice speed up especially when SIMD isn’t available or a pain (eg in Java pre-Panama).
One random sample:
https://lemire.me/blog/2022/01/21/swar-explained-parsing-eight-digits/?amp https://lemire.me/blog/2022/01/21/swar-explained-parsing-eig...
- djmips 3y agoYes SWAR - even hardware supported is called SWAR though? https://en.wikipedia.org/wiki/SWAR https://en.wikipedia.org/wiki/SWAR We used this as far back as the eighties on 68000 machines you could do 8 bit SWAR with the 32 bit registers!
- ashvardanian 3y agoYes, in the past those tricks were much more common