Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the size of a rust install slightly #12448

Merged
merged 2 commits into from
Feb 23, 2014

Conversation

alexcrichton
Copy link
Member

Two optimizations:

  1. Compress foo.bc in each rlib with flate. These are just taking up space and are only used with LTO, no need for LTO to be speedy.
  2. Stop install librustc.rlib and friends, this is a huge source of bloat. There's no need for us to install static libraries for these components.

cc #12440

These are only ever used with LTO, so there's no need for reading them to be
speedy.
You rarely want to statically link against librustc and friends, so there's no
real reason to install the rlib version of these libraries, especially because
the rlibs are massive.
@brson
Copy link
Contributor

brson commented Feb 22, 2014

What's the size after this? Has creating a lot of small libs greatly increased our total binary size?

@alexcrichton
Copy link
Member Author

For OSX, this takes the size of an installation from 351MB to 177MB

bors added a commit that referenced this pull request Feb 23, 2014
Two optimizations:

1. Compress `foo.bc` in each rlib with `flate`. These are just taking up space and are only used with LTO, no need for LTO to be speedy.
2. Stop install `librustc.rlib` and friends, this is a *huge* source of bloat. There's no need for us to install static libraries for these components.

cc #12440
@bors bors closed this Feb 23, 2014
@bors bors merged commit 3cf0b9b into rust-lang:master Feb 23, 2014
@huonw
Copy link
Member

huonw commented Feb 23, 2014

Reduce the size of a rust install slightly

takes the size of an installation from 351MB to 177MB

Ah, yes, a small 50% reduction in size. ;P

(Nice work!)

@alexcrichton alexcrichton deleted the smaller-rust branch February 23, 2014 07:12
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 18, 2022
…on, r=Veykril

feat: Autocomplete Cargo-defined env vars in `env!` and `option_env!` (rust-lang#12448)

Closes rust-lang#12448

Important to know:

- Variables are taken from https://doc.rust-lang.org/cargo/reference/environment-variables.html and hardcoded as a const array.
- For the sake of simplicity I didn't include the autocompletion of `CARGO_BIN_EXE_<name>` and `OUT_DIR` since it would require information about build.rs and binary name. If somebody knows an easy way of obtaining them I can add those vars as well :)
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Mar 21, 2024
[`single_match`]: Fix duplicate diagnostics

Relates to rust-lang#12379

edit two test file
`tests/ui/single_match_else.rs`
`tests/ui/single_match.rs`

those two test file point to the same lint

---

changelog: [`single_match`] Fix duplicate diagnostics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants