Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
io: simplify poll_write_vectored for BufWriter
Simplify branching and do what poll_write does: do not buffer slices partially, optimizing for the most likely case where slices are much smaller than the buffer, while retaining special treatment for oversized slices.
- Loading branch information
Showing
1 changed file
with
9 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters