]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #18108 : mahkoh/rust/buffered_reader, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 20 Oct 2014 03:27:12 +0000 (03:27 +0000)
committerbors <bors@rust-lang.org>
Mon, 20 Oct 2014 03:27:12 +0000 (03:27 +0000)
This optimizes `read` for the case in which the number of bytes
requested is larger than the internal buffer. Note that the first
comparison occurs again right afterwards and should thus be free. The
second comparison occurs only in the cold branch.


Trivial merge