]> git.lizzy.rs Git - rust.git/commit
auto merge of #7608 : glinscott/rust/json_perf, r=pcwalton
authorbors <bors@rust-lang.org>
Mon, 8 Jul 2013 21:34:54 +0000 (14:34 -0700)
committerbors <bors@rust-lang.org>
Mon, 8 Jul 2013 21:34:54 +0000 (14:34 -0700)
commitf503e539bf60416a731f9ecc12b6aab31ef2fe87
treec1ff5d04cfd8079d5e500c96ac69305ff56b1411
parentf7b293bc75684a368e20567b5987c482dc5f8550
parent149c976aa0b6441b93f2e2140e10e0424d39ea17
auto merge of #7608 : glinscott/rust/json_perf, r=pcwalton

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.
src/libextra/json.rs