SIMD for faster calculations?

3
closed
archuser555
archuser555
Posted 5 months ago

SIMD for faster calculations? #357

we can use SIMD to improve calculations and math speed

er888kh
er888kh
Created 5 months ago

The compiler is already really well at using SIMD, if the code is well written. On the other hand, having some SIMD code as a tutorial for instruction-level parallelism in Rust would be awesome!

We should keep in mind that the main focus of this repository is to give a pretty good implementation of some algos/DSs over having the best implementation by sacrificing readability or the educational aspect. If I were going to start reading OpenSSL's implementation of SHA-256, I would fail miserably. But it is arguably the most secure and performant implementation out there.

TLDR; We always love to have educational and well-written code, no matter how advanced it might be. But having the best implementation out there is pretty much an anti-goal. Having said that, writing examples of SIMD hand-optimized code with good documentation can be both fun and educational!

siriak
siriak
Created 5 months ago

Feel free to add separate implementations that use SIMD instructions. They'll reside next to usual algorithms and indicate with their name how they are different from conventional/SISD versions of the same algorithm.

archuser555
archuser555
Created 5 months ago

Ok Nice, thanks for the info's guys, i think i should close this, thanks again!