Low Level Tools/2019Q2: Difference between revisions
Jump to navigation
Jump to search
Nnethercote (talk | contribs) No edit summary |
Nnethercote (talk | contribs) No edit summary |
||
| Line 2: | Line 2: | ||
[https://github.com/rust-lang/rust/issues/58465 rustc pipelining]: Implement "pipelined" rustc compilation (compiler side). | [https://github.com/rust-lang/rust/issues/58465 rustc pipelining]: Implement "pipelined" rustc compilation (compiler side). | ||
* 100% completed. | |||
* [https://github.com/rust-lang/rust/pull/60190 Don't generate unnecessary rmeta files.] A precursor. | * [https://github.com/rust-lang/rust/pull/60190 Don't generate unnecessary rmeta files.] A precursor. | ||
* [https://github.com/rust-lang/rust/pull/60006 In JSON output, emit a directive after metadata is generated.] The part that lets rustc tell Cargo when metadata has been written. | * [https://github.com/rust-lang/rust/pull/60006 In JSON output, emit a directive after metadata is generated.] The part that lets rustc tell Cargo when metadata has been written. | ||
* [https://github.com/rust-lang/rust/pull/60385 Emit metadata files earlier.] So that significant crate overlapping can occur. | |||
* [https://github.com/rust-lang/rust/issues/60988 Tracking issue for stabilizing "pipelined compilation"] has been opened. | * [https://github.com/rust-lang/rust/issues/60988 Tracking issue for stabilizing "pipelined compilation"] has been opened. | ||
* Speed-ups depend on program structure and configuration, but up to 1.83x has been observed. | |||
* Speedups for opt builds of notable projects: | |||
** cranelift-codegen: 1.20x | |||
** webrender: 1.27x | |||
** Firefox: 1.07x | |||
** script-servo: 1.07x | |||
** style-servo: 1.06x | |||
Ship GWP. | Ship GWP. | ||
Revision as of 10:24, 24 May 2019
Nick
rustc pipelining: Implement "pipelined" rustc compilation (compiler side).
- 100% completed.
- Don't generate unnecessary rmeta files. A precursor.
- In JSON output, emit a directive after metadata is generated. The part that lets rustc tell Cargo when metadata has been written.
- Emit metadata files earlier. So that significant crate overlapping can occur.
- Tracking issue for stabilizing "pipelined compilation" has been opened.
- Speed-ups depend on program structure and configuration, but up to 1.83x has been observed.
- Speedups for opt builds of notable projects:
- cranelift-codegen: 1.20x
- webrender: 1.27x
- Firefox: 1.07x
- script-servo: 1.07x
- style-servo: 1.06x
Ship GWP.
Land 5 changes that speed up or reduce peak memory usage of rustc.
- Increase `Span` from 4 bytes to 8 bytes. A big win across lots of workloads, especially larger crates: some script-servo builds are 15% faster.
- Reduce the `DepNode` pre-allocation ratio. Reduces peak memory use by 20 MiB on some workloads.
- Use `Symbol` more. Up to 1% speed-up, as well as making the code nicer. Should also help with parallel rustc.
- Use `Symbol` even more. Up to 1% speed-up. Should also help with parallel rustc.