]> git.lizzy.rs Git - rust.git/commit
perf: Buffer stderr when writing json errors/warnings
authorMarkus Westerlind <markus.westerlind@distilnetworks.com>
Mon, 17 Feb 2020 07:09:34 +0000 (08:09 +0100)
committerMarkus Westerlind <markus.westerlind@distilnetworks.com>
Mon, 17 Feb 2020 14:35:42 +0000 (15:35 +0100)
commit7ac4154643a952fed1d942adcb78e27b17ad41dd
treed4dd87bd5bed8ebfe0666a94bfa71a2464a7d4f6
parent75b98fbe77d472d85d1691bae5b25e7eefb3609c
perf: Buffer stderr when writing json errors/warnings

Since `stderr` is unbuffered, writing out json messages actually take up
about ~10%/0.1s of the runtime of the `inflate` benchmark.

cc #64413
src/librustc_errors/json.rs