mozilla/rust — pull request #2983 by erickt (2012-07-21 04:51:29+00:00)
Title: Allow io::reader to use preallocated buffers, plus other misc changes

This theoretically should speed up `io::reader` hotpaths by eliminating the need for a malloc per loop. Plus it comes with a memcpy/memmove that works over slices.