Closed fengalin closed 4 years ago
I think this should be reported to https://github.com/rust-lang/rust/ . It's a serious regression in the compiler, not in combine. I'm sure there's something in combine that can be optimized too, but initially the problem is the compiler :)
Sure, will report there now.
This is being handled by the compiler team. Sorry for the noise.
Description
I hit an important increase in compilation times on beta & nightly with a particular configuration using
combine-3.8.1
since the recent version updates in the Rust toolchains.I tried building an example without
combine
in order to submit it torustc
but it turns out not to be trivial. I ran into this as a side effect in CI and can't spend much time investigating ATM, sorry.From the CI logs I have at hand, the issue was not present as of: rustc 1.41.0-nightly (fdc001156 2019-12-02).
Reduced example
Here is an example with which I was able to reproduce the issue:
Toolchain versions
The toolchain used for these tests are those available as of 2019/12/20:
Compilation times
For each test,
cargo clean
was run before building in debug mode.With
message(..)
Without
message(..)
"Interestingly", removing the
.message(..)
line reduces compilation times significantly.