rust-lang/rust — pull request #18108 by mahkoh (2014-10-17 00:53:16+00:00)
Title: Optimize BufferedReader::read for large buffers.

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.