RazrFalcon / tiny-skia

A tiny Skia subset ported to Rust
BSD 3-Clause "New" or "Revised" License
1.05k stars 67 forks source link

Switch to std::simd #88

Open RazrFalcon opened 1 year ago

RazrFalcon commented 1 year ago

TODO:

Some methods in the u16 pipeline are up to 20% faster on aarch64, which is very good.

Gradients in the u16 pipeline are slightly different because of explicit mul_add instead of a manual f * m + a.

Closes #59

notgull commented 1 year ago

Not sure if you're planning on releasing this soon, but I would be against making tiny-skia a nightly-only package. It's currently relied on by winit and theo, which are not nightly-only and would likely be opposed to becoming nighly-only.

RazrFalcon commented 1 year ago

@notgull

Wait until std::simd will become stable...

notgull commented 1 year ago

Ah, my bad, I missed that option. Thanks!