I noticed that nobody answered this question... On Sun, Jan 6, 2013 at 8:22 AM, james <[email protected]> wrote: > Could you use multiple threads to type check and code gen in parallel? >
Yes, but with a non-trivial amount of work. rustc is not very parallel right now. Parallelizing the compiler would require a lot of refactoring (in fact, probably a lot of the same refactoring that would be necessary to do incremental recompilation) and I think it's something we all want, but the time isn't budgeted for it right now. > Could you retain information from a previous run of the compiler and reuse > it (especially for code generation)? I think we could. This would be more of a research project (possible intern project or volunteer project for someone with a love for compiler research!) The only real thing that I see standing in the way of that is time. It's also possible that LLVM has infrastructure for this kind of profile-guided optimization already, I really don't know. Cheers, Tim -- Tim Chevalier * http://catamorphism.org/ * Often in error, never in doubt "Too much to carry, too much to let go Time goes fast, learning goes slow." -- Bruce Cockburn _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
