about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src/errors.rs
diff options
context:
space:
mode:
authornils <48135649+Nilstrieb@users.noreply.github.com>2023-03-21 13:00:23 +0100
committerGitHub <noreply@github.com>2023-03-21 13:00:23 +0100
commit09b1254eb2647d714fbdddf7e245adefebce95d6 (patch)
tree5fd8862b40fa313ccd5180fddd4a8ce8ec5d94a5 /compiler/rustc_plugin_impl/src/errors.rs
parente79b182fcacd1ad6499a97d428c2176c696eee8e (diff)
parent01771762cd6369f941d4d4ed04993209f2a85e08 (diff)
downloadrust-09b1254eb2647d714fbdddf7e245adefebce95d6.tar.gz
rust-09b1254eb2647d714fbdddf7e245adefebce95d6.zip
Rollup merge of #109124 - ferrocene:pa-compression-mode, r=Mark-Simulacrum
Add `dist.compression-profile` option to control compression speed

PR #108534 reduced the size of compressed archives, but (as expected) it also resulted in way longer compression times and memory usage during compression.

It's desirable to keep status quo (smaller archives but more CI usage), but it should also be configurable so that downstream users don't have to waste that much time on CI. As a data point, this resulted in doubling the time of Ferrocene's dist jobs, and required us to increase the RAM allocation for one of such jobs.

This PR adds a new `config.toml` setting, `dist.compression-profile`. The values can be:

* `fast`: equivalent to the gzip and xz preset of "1"
* `balanced`: equivalent to the gzip and xz preset of "6" (the CLI defaults as far as I'm aware)
* `best`: equivalent to the gzip present of "9", and our custom xz profile

The default has also been moved back to `balanced`, to try and avoid the compression time regression for downstream users. I don't feel too strongly on the default, and I'm open to changing it.

Also, for the `best` profile the XZ settings do not match the "9" preset used by the CLI, and it might be confusing. Should we create a `custom-rustc-ci`/`ultra` profile for that?

r? ``@Mark-Simulacrum``
Diffstat (limited to 'compiler/rustc_plugin_impl/src/errors.rs')
0 files changed, 0 insertions, 0 deletions