Re: [dev-servo] Incremental compilation and other compile time tricks

2017-04-05 Thread Nicholas Nethercote
`mach cargo check` is worth listing in Servo's README.md, IMO! Nick On Sat, Apr 1, 2017 at 4:43 AM, Simon Sapin wrote: > If you build Servo a lot you may have noticed that compilation times have > improved over the last few months. This is combination of multiple factors. > > > # Compiler optim

Re: [dev-servo] Incremental compilation and other compile time tricks

2017-04-05 Thread Bobby Holley
That's awesome - thanks Simon! On Wed, Apr 5, 2017 at 3:13 PM, Simon Sapin wrote: > On 31/03/17 19:43, Simon Sapin wrote: > >> # cargo check >> >> Remember how I said a crate needs its dependencies to be compiled before >> it can start compiling? It actually only needs metadata (the results of >

Re: [dev-servo] Incremental compilation and other compile time tricks

2017-04-05 Thread Simon Sapin
On 31/03/17 19:43, Simon Sapin wrote: # cargo check Remember how I said a crate needs its dependencies to be compiled before it can start compiling? It actually only needs metadata (the results of the analysis phase), not the generated code. Cargo added a `cargo check` command that skips code g

Re: [dev-servo] Incremental compilation and other compile time tricks

2017-03-31 Thread Jack Moffitt
C has less dependency info than rust. So there is hope that this time will be different :) jack. On Fri, Mar 31, 2017 at 14:56 Simon Sapin wrote: > On 31/03/17 20:25, Keith Yeung wrote: > > If this becomes an occasional problem, can we simply just connect to the > CI > > build machines and run `

Re: [dev-servo] Incremental compilation and other compile time tricks

2017-03-31 Thread Simon Sapin
On 31/03/17 20:25, Keith Yeung wrote: If this becomes an occasional problem, can we simply just connect to the CI build machines and run `./mach clean`? That should remove all the files that broke CI. I think reverting should be considered when it really does become a very frequent problem. Agr

Re: [dev-servo] Incremental compilation and other compile time tricks

2017-03-31 Thread Keith Yeung
This is a great write-up on the details of our compilation process, thanks Simon! > There is a risk that preserved files could be left by a previous builds in a broken state, leading to failures that only happen on CI. We’re monitoring this and will consider reverting this change it this turns out

[dev-servo] Incremental compilation and other compile time tricks

2017-03-31 Thread Simon Sapin
If you build Servo a lot you may have noticed that compilation times have improved over the last few months. This is combination of multiple factors. # Compiler optimization Plain old optimization of the compiler’s code. Sometimes a rustup makes things a bit faster without us changing anythi