]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #28338 - erickt:str-cmp, r=bluss
authorbors <bors@rust-lang.org>
Fri, 11 Sep 2015 10:33:02 +0000 (10:33 +0000)
committerbors <bors@rust-lang.org>
Fri, 11 Sep 2015 10:33:02 +0000 (10:33 +0000)
llvm seems to be having some trouble optimizing the iterator-based string comparsion method into some equivalent to memcmp. This explicitly calls out to the memcmp intrinisic in order to allow llvm to generate better code. In some manual benchmarking, this memcmp-based approach is 20 times faster than the iterator approach.


Trivial merge