]> git.lizzy.rs Git - rust.git/commit
Auto merge of #37445 - nnethercote:shrink-Expr_, r=eddyb
authorbors <bors@rust-lang.org>
Sun, 30 Oct 2016 17:12:20 +0000 (10:12 -0700)
committerGitHub <noreply@github.com>
Sun, 30 Oct 2016 17:12:20 +0000 (10:12 -0700)
commitf5a702dc785760c74960007af389caa47546fa58
tree66fec222fb867f464eb0f270a1253d70101752b8
parent6062e7ed3d81cb3bd535993e9b14269924b76c29
parenta920e355ea837a950b484b5791051337cd371f5d
Auto merge of #37445 - nnethercote:shrink-Expr_, r=eddyb

Shrink Expr_::ExprInlineAsm.

On 64-bit this reduces the size of `Expr_` from 144 to 64 bytes, and
reduces the size of `Expr` from 176 to 96 bytes.

For the workload in #36799 this reduces the RSS for the "lowering ast -> hir" phase and all subsequent phases by 50 MiB, which reduces the peak RSS for that workload by about 1%. Not huge, but it's a very easy improvement.

r? @eddyb
src/librustc/hir/lowering.rs
src/librustc/hir/mod.rs