diff options
| author | Tyson Nottingham <tgnottingham@gmail.com> | 2020-12-12 23:17:05 -0800 |
|---|---|---|
| committer | Tyson Nottingham <tgnottingham@gmail.com> | 2021-04-13 09:48:58 -0700 |
| commit | 5fd9372c1118b213b15a0e75bec7fab3b2e00260 (patch) | |
| tree | d4ba89128afa13fa433fc51a1c3dded3450e8115 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | b43e8e248bfba9e8d26821c6d98deba94d024abf (diff) | |
| download | rust-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/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
