about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2015-09-10 16:46:34 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2015-09-10 16:46:59 -0700
commitfbd91a732b73dd73b4da8940bc32c4a7d5e6251b (patch)
tree875a5e77354d543a6fbb9707d1f48f86bb610fb6 /src/libsyntax/errors
parent5ff55943a38f2b581bd4ae5d521f57defd1a8b29 (diff)
downloadrust-fbd91a732b73dd73b4da8940bc32c4a7d5e6251b.tar.gz
rust-fbd91a732b73dd73b4da8940bc32c4a7d5e6251b.zip
Optimize string comparison by using memcmp
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.
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions