On Fri, Nov 29, 2013 at 6:22 AM, Guillaume HERVIER
<[email protected]> wrote:
> +1 for this issue. I think that compilation time is really important if we
> want Rust to be used as production language.
>
> For example, I think that if we can reduce significantly the Rust compiler's
> compilation time, it could allow more developers to contribute to the Rust
> language (as they won't have to wait 30min for each small modifications in
> the compiler).
> Personally, it's the only thing which blocks me when I want to contribute to
> Rust, because I like to often compile code when I do small modifications to
> test each of these small modifications, partly because I don't know the
> language very well.

The compiler has to bootstrap itself so incremental compilation won't
decrease the build times. Splitting up crates into many crates does
allow for incremental compilation, but it will also increase the
*total* build time, since work is being redone for any generic or
cross-crate inlined functions.

The final binary will also be larger and slower than using a single
crate, so supporting link-time optimization for release builds is
important.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to