On 4/6/13 8:14 PM, Ben Kelly wrote:
One of my motivations for looking at this was the long build times
required to compile larger crates. For example, if you touch a single file in libstd then rustc currently has to rebuild the entire crate which takes 45 seconds on my laptop:
Unfortunately, this isn't so straightforward. Crates can have mutually recursive definitions, so compiling one module requires at least scanning all the other modules for type and function definitions. Because of this, creating the dependency graph within a crate is rather difficult...
I would recommend trying to break your crates up into smaller crates. Eventually it may be possible to recompile individual modules separately, but it will not be trivial.
The good news is that we're focusing on improving raw compiler performance—the work that Graydon and I are doing should help with this.
Patrick _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
