about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2014-01-09 10:35:36 +0100
committerCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2014-01-10 20:14:05 +0100
commit0b3311c260812cef6c35b7e99e93516cfc7a3561 (patch)
tree0a9176a9c9d93bd4b7bc273b1dc7c339b5c613e9 /src/rustllvm/RustWrapper.cpp
parent326e63187ff4490c30ed603158e00c0be58dd162 (diff)
downloadrust-0b3311c260812cef6c35b7e99e93516cfc7a3561.tar.gz
rust-0b3311c260812cef6c35b7e99e93516cfc7a3561.zip
std::io: Optimize u64_from_be_bytes()
Instead of reading a byte at a time in a loop we copy the relevant bytes into
a temporary vector of size eight. We can then read the value from the temporary
vector using a single u64 read. LLVM seems to be able to optimize this
almost scarily good.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions