about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorMikhail Zabaluev <mikhail.zabaluev@gmail.com>2020-11-22 17:00:48 +0200
committerMikhail Zabaluev <mikhail.zabaluev@gmail.com>2020-11-22 17:05:14 +0200
commit674dd623ee067d4298fda867f72442b13014eaa3 (patch)
treeecbbe148aa0707d6032e81c4ec48b2162cda0a54 /compiler/rustc_llvm/llvm-wrapper
parent00deeb35c8149508240549f5c9f3908a7ba9ee11 (diff)
downloadrust-674dd623ee067d4298fda867f72442b13014eaa3.tar.gz
rust-674dd623ee067d4298fda867f72442b13014eaa3.zip
Reduce branching in write_vectored for BufWriter
Do what write does and optimize for the most likely case:
slices are much smaller than the buffer. If a slice does not fit
completely in the remaining capacity of the buffer, it is left out
rather than buffered partially. Special treatment is only left for
oversized slices that are written directly to the underlying writer.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions