]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: add constant cache
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 28 Feb 2016 23:51:11 +0000 (15:51 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 29 Feb 2016 22:40:43 +0000 (22:40 +0000)
commit194c79c16390187624f648e4af279a11c67b99ce
treeadc1ab2625cf2e221fb902648c45b753920fae54
parentf1f366c1e70cb2628ad948d03ef5049763d98451
[dev.ssa] cmd/compile: add constant cache

The cache gets a 62% hit rate while compiling
the standard library.

name      old time/op    new time/op    delta
Template     449ms ± 2%     443ms ± 4%  -1.40%  (p=0.006 n=23+25)
GoTypes      1.54s ± 1%     1.50s ± 2%  -2.53%  (p=0.000 n=22+22)
Compiler     5.51s ± 1%     5.39s ± 1%  -2.29%  (p=0.000 n=23+25)

name      old alloc/op   new alloc/op   delta
Template    90.4MB ± 0%    90.0MB ± 0%  -0.45%  (p=0.000 n=25+25)
GoTypes      334MB ± 0%     331MB ± 0%  -1.05%  (p=0.000 n=25+25)
Compiler    1.12GB ± 0%    1.10GB ± 0%  -1.57%  (p=0.000 n=25+24)

name      old allocs/op  new allocs/op  delta
Template      681k ± 0%      682k ± 0%  +0.26%  (p=0.000 n=25+25)
GoTypes      2.23M ± 0%     2.23M ± 0%  +0.05%  (p=0.000 n=23+24)
Compiler     6.46M ± 0%     6.46M ± 0%  +0.02%  (p=0.000 n=24+25)

Change-Id: I2629c291892827493d7b55ec4d83f6973a2ab133
Reviewed-on: https://go-review.googlesource.com/20026
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Alexandru Moșoi <alexandru@mosoi.ro>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/TODO
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/gen/rulegen.go