about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2015-05-04 20:56:28 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2015-05-04 21:20:10 +1000
commit4b46546af0d230a56b4f66d0fcc2ede7b89c09b5 (patch)
treeddddaa43f4ca958d180cdea2790b3d7753ab1878 /src/test/codegen/stack-alloc-string-slice.cc
parentb59403606953d01391c1faa38d96062e3dfafa3d (diff)
downloadrust-4b46546af0d230a56b4f66d0fcc2ede7b89c09b5.tar.gz
rust-4b46546af0d230a56b4f66d0fcc2ede7b89c09b5.zip
Make `BitVec::process` faster (branch free).
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.)
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions