]> git.lizzy.rs Git - rust.git/commit
Auto merge of #25095 - huonw:faster-bitvec, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 5 May 2015 03:01:29 +0000 (03:01 +0000)
committerbors <bors@rust-lang.org>
Tue, 5 May 2015 03:01:29 +0000 (03:01 +0000)
commit0be117e2733423e70bccd8b0a46e8eccd1e1d1cc
tree0df94bedead37a258dbfc7853b7053df96f61b99
parent435622028f37085819843f4ac8938557501f0468
parent4b46546af0d230a56b4f66d0fcc2ede7b89c09b5
Auto merge of #25095 - huonw:faster-bitvec, r=alexcrichton

This makes the `bit::vec::bench::bench_bit_vec_big_union` benchmark go
from `774 ns/iter (+/- 190)` to `602 ns/iter (+/- 5)`.

(There's room for more work here too: if one can guarantee 128-bit
alignment for the vector, the compiler actually optimises `union`,
`intersection` etc. to SIMD instructions, which end up being ~5x faster
that the original version, and 4x faster than the optimised version in
this patch.)