top | item 37277475

(no title)

gwittel | 2 years 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-eig...

discuss

order

djmips|2 years ago

Yes SWAR - even hardware supported is called SWAR though?

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|2 years ago

Yes, in the past those tricks were much more common