diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-04-08 02:09:20 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-04-08 02:23:14 +0200 |
| commit | 53cc673db13608f27bec18ab71ce3fe36b6b303e (patch) | |
| tree | cc57f1ef7b13c2f9a7cdfce016990903ca125fc5 /src/rt/rust_kernel.cpp | |
| parent | bb56253015a5cd499e9d6d109d249778cb078877 (diff) | |
| download | rust-53cc673db13608f27bec18ab71ce3fe36b6b303e.tar.gz 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/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
