about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTyson Nottingham <tgnottingham@gmail.com>2020-12-12 23:17:05 -0800
committerTyson Nottingham <tgnottingham@gmail.com>2021-04-13 09:48:58 -0700
commit5fd9372c1118b213b15a0e75bec7fab3b2e00260 (patch)
treed4ba89128afa13fa433fc51a1c3dded3450e8115 /compiler/rustc_codegen_llvm/src
parentb43e8e248bfba9e8d26821c6d98deba94d024abf (diff)
downloadrust-5fd9372c1118b213b15a0e75bec7fab3b2e00260.tar.gz
rust-5fd9372c1118b213b15a0e75bec7fab3b2e00260.zip
BufWriter: optimize for write sizes less than buffer size
Optimize for the common case where the input write size is less than the
buffer size. This slightly increases the cost for pathological write
patterns that commonly fill the buffer exactly, but if a client is doing
that frequently, they're already paying the cost of frequent flushing,
etc., so the cost is of this optimization to them is relatively small.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions