diff options
| author | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2014-01-09 10:35:36 +0100 |
|---|---|---|
| committer | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2014-01-10 20:14:05 +0100 |
| commit | 0b3311c260812cef6c35b7e99e93516cfc7a3561 (patch) | |
| tree | 0a9176a9c9d93bd4b7bc273b1dc7c339b5c613e9 /src/rustllvm/RustWrapper.cpp | |
| parent | 326e63187ff4490c30ed603158e00c0be58dd162 (diff) | |
| download | rust-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
