]> git.lizzy.rs Git - rust.git/commit
rustc: buffer the output writer for -Z ast-json[-noexpand].
authorHuon Wilson <dbau.pp+github@gmail.com>
Tue, 18 Mar 2014 12:40:07 +0000 (23:40 +1100)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 18 Mar 2014 20:47:55 +0000 (13:47 -0700)
commit92f0bc29355ac990595e1771c4bb9a3b7e358d30
tree6e51ab747b0532fd5109fe992c776bfd55203e96
parent873f7408bdffdb05b23f77aa343abd05f2e3126c
rustc: buffer the output writer for -Z ast-json[-noexpand].

This takes the time for `rustc libstd/lib.rs -Z ast-json-noexpand >
file.json` from 9.0s to 3.5s (~0.5s spent parsing etc.) and `-Z
ast-json` from 11s to 5s (~1.5s spent parsing and expanding).
src/librustc/driver/driver.rs