> > 2. Distribute compilations and tests across a cluster of machines (like
> > distcc)
> >
>
> Compilation is 99% serial (the only things that happen in parallel
> are rustpkg and rustdoc etc at the end, and they are almost nothing),
> though tests could be distributed (and Graydon is working on doing
> that afaik).
Are you sure?
I'm not an expert on rustc implementation, but I'd expect you could have a
sequence of parallel phases and "collection" points: specifically I'd guess you
could parse all files in parallel, and once you have the AST for all files, do
checking and typing in parallel, and then do codegen in parallel.
For comparison, C/C++ can do everything except linking in parallel, except for
parsing header files if not using precompiled headers (which is still parallel
but repeated for each file); linking can be parallelized to some extent on a
single machine with gold.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev