about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorGary Linscott <glinscott@gmail.com>2013-07-05 19:01:57 -0400
committerGary Linscott <glinscott@gmail.com>2013-07-05 19:40:01 -0400
commit37494d39d38be33a589a1f46dae38fe2ceb9d94f (patch)
treed77211e7042fbf860b3cc7a461b76dd81590d980 /src/libsyntax/parse/parser.rs
parent58eb70a5e2ce6602e5685f5cc18ab2fe0c327020 (diff)
downloadrust-37494d39d38be33a589a1f46dae38fe2ceb9d94f.tar.gz
rust-37494d39d38be33a589a1f46dae38fe2ceb9d94f.zip
Switch json parsing to read_chars for performance
Avoids the overhead of read_char for every character.

Benchmark reading example.json 10 times from
https://code.google.com/p/rapidjson/wiki/Performance

Before: 2.55s
After:  0.16s

Regression testing is already done by isrustfastyet.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions