cargo-bins / cargo-binstall

Binary installation for rust projects
GNU General Public License v3.0
1.62k stars 60 forks source link

Support x86_64 features when resolving pre-built artifacts #1251

Open NobodyXu opened 1 year ago

NobodyXu commented 1 year ago

x86_64 has now v[234] subset which adds vectorized support.

Intel is also planning to release a new x86_64 extension Intel APX which doubles the register, more conditional instructions and also three-operand instructions to avoid mov, plus also new AVX10.

Given the massive performance improvements bring by more registers and instructions, I think many crates would have pre-built artifacts specifically for APX and thus worth supporting.

passcod commented 1 year ago

I know we build 64h for mac, but can we build those for binstall too to dogfood?

NobodyXu commented 1 year ago

I know we build 64h for mac, but can we build those for binstall too to dogfood?

We can definitely build v[234] right now, but we would have to somehow include it in the binary name and the resolution process, since AFAIK the target triple doesn't cover this.

I read that Intel APX is planned to release for the gen after next-gen, so that one would have to wait, but IMHO it's gonna be a dramatic perf boost so it's worth keep an eye on.