diff options
| author | Tyson Nottingham <tgnottingham@gmail.com> | 2020-12-10 19:46:54 -0800 |
|---|---|---|
| committer | Tyson Nottingham <tgnottingham@gmail.com> | 2021-04-13 09:48:58 -0700 |
| commit | 1f32d40ac3c51d6867fc6969e52e960452a40652 (patch) | |
| tree | 04be3f7caf3cf5d4f8ef96a4c5e183ea3c2d9a4a /compiler/rustc_codegen_llvm/src | |
| parent | 5c1304205b7bc53a1e9f48cf286a60438351c1ab (diff) | |
| download | rust-1f32d40ac3c51d6867fc6969e52e960452a40652.tar.gz rust-1f32d40ac3c51d6867fc6969e52e960452a40652.zip | |
BufWriter: apply #[inline] / #[inline(never)] optimizations
Ensure that `write` and `write_all` can be inlined and that their commonly executed fast paths can be as short as possible. `write_vectored` would likely benefit from the same optimization, but I omitted it because its implementation is more complex, and I don't have a benchmark on hand to guide its optimization.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
