mozilla/rust — pull request #7704 by glinscott (2013-07-11 03:12:51+00:00)
Title: Convert json Reader to iterators

This is much faster for strings, and eventually when there is a
buffered reader of some sort, will be much faster for files.

Reading example.json 100 times before was around 1.18s.
After:
- reading from string 0.68s
- reading from file 1.08s (extra time is all in io::Reader)

Also:
- fixes error when parsing strings and we hit EOF
- fixes definition of whitespace in json - it should only be the 4 ascii whitespace chars