]> git.lizzy.rs Git - rust.git/commit
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)
commit045bc283eceb414caeea28797b9b610bd33f33ac
tree797553fefcd75356f7f1a7a6fa610df8db82ef51
parentaff4f11cddadae56fe26980329b610066eb487b0
parent3839696529213ceaa12eb0da28c3dad10c8b99e7
auto merge of #18108 : mahkoh/rust/buffered_reader, r=alexcrichton

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.