Skip to content

Instantly share code, notes, and snippets.

@softprops
Created January 19, 2019 20:29
Show Gist options
  • Save softprops/7711e1717ee6b21a06f8316149348c05 to your computer and use it in GitHub Desktop.
Save softprops/7711e1717ee6b21a06f8316149348c05 to your computer and use it in GitHub Desktop.
impact of rust 1.32.0 removing jemalloc infavor of default system allocator (296K less bytes)
~/c/r/binsize ❯❯❯ rustc --version
rustc 1.31.1 (b6c32da9b 2018-12-18)
~/c/r/binsize ❯❯❯ cat src/main.rs
fn main() {
println!("Hello, world!");
}
~/c/r/binsize ❯❯❯ cargo build
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
~/c/r/binsize ❯❯❯ du target/debug/binsize
576K target/debug/binsize
~/c/r/binsize ❯❯❯ rustup update stable
~/c/r/binsize ❯❯❯ rustc --version
rustc 1.32.0 (9fda7c223 2019-01-16)
~/c/r/binsize ❯❯❯ cargo build
Compiling binsize v0.1.0 (/Users/dougtangren/code/rust/binsize)
Finished dev [unoptimized + debuginfo] target(s) in 1.48s
~/c/r/binsize ❯❯❯ du target/debug/binsize
280K target/debug/binsize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment