This helps. I built Rust master locally since that change is not in Nightly yet. Rebuilding the script crate with incremental compilation after touch components/script/lib.rs now takes 52 seconds instead of 79. Output like before: https://gist.github.com/anonymous/a6baf2e4794acfc7961a3a4bf51464e1 and extract (2+ seconds lines):
Compiling script v0.0.1 (file:///home/simon/servo/components/script)
time: 2.681; rss: 797MB expansion
time: 2.314; rss: 1102MB compute_incremental_hashes_map
time: 2.014; rss: 1153MB load_dep_graph
time: 7.397; rss: 1942MB item-bodies checking
time: 7.088; rss: 3274MB translation
time: 8.728; rss: 3140MB serialize dep graph
time: 8.303; rss: 1662MB linking
Finished dev [unoptimized + debuginfo] target(s) in 52.24 secs
Rebuilding all of Servo with incremental compilation after touch components/style/lib.rs now takes 81 seconds instead of 108 seconds.
Edit: “instead” here means compared to rustc from a few days ago, not compared to non-incremental compilation.
Edit 2: my second benchmark is therefore: 81 seconds with incremental compilation vs 117 without, which is ~30% less time.