diff options
| author | Marijn Haverbeke <[email protected]> | 2011-04-08 02:09:20 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-04-08 02:23:14 +0200 |
| commit | 53cc673db13608f27bec18ab71ce3fe36b6b303e (patch) | |
| tree | cc57f1ef7b13c2f9a7cdfce016990903ca125fc5 /src/rt | |
| parent | Initialize two more variables to keep darwin tinderbox happy (diff) | |
| download | rust-53cc673db13608f27bec18ab71ce3fe36b6b303e.tar.xz rust-53cc673db13608f27bec18ab71ce3fe36b6b303e.zip | |
Re-add a read_byte() method to buf_reader objs
This was removed because of the repetition, but doing single-byte
reads in terms of read_bytes (which allocates a vec) is needlessly
slow. This change speeds up parsing by 22%.
(Eventually, we won't be able to escape handling the buffering in the
stdlib itself.)
Diffstat (limited to 'src/rt')
0 files changed, 0 insertions, 0 deletions