Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vvimpcrvsh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
vvimpcrvsh
9y ago
I'll add benchmarks soon; I'm trying to make it usable first ;). Right now, it's within 5% of ugly-style explicit SIMD code in the absolute worst case (the example in the README is more like 1%). The hot bit (the body of the
2.
▲
by
vvimpcrvsh
9y ago
LLVM and rustc are pretty fickle with what they'll autovectorize. The idea of faster is to make things which are impossible to autovectorize easy to write as SIMD. A few examples I'm targeting for the next point release are matrix
3.
▲
by
vvimpcrvsh
9y ago
Sadly, even something like [1.0f32].map(|s| s.sqrt().abs().recip()).collect() doesn't get vectorized 99% of the time; you can check the disassembly and you'll see sqrtss et al.
4.
▲
by
vvimpcrvsh
9y ago
Author of Faster here. Thanks so much for posting this; I was wondering where the flood of stars was coming from!