]> git.lizzy.rs Git - rust.git/commitdiff
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)
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

1  2 
src/librustc/hir/lowering.rs
src/librustc/hir/mod.rs

Simple merge
Simple merge