]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: don't alloc new CSE classes
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 23 Jul 2015 04:21:50 +0000 (21:21 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 23 Jul 2015 18:13:32 +0000 (18:13 +0000)
commit851ceebcebb2ae9352a2be958c86f63e70d344b1
tree17a5852d1e7fb0e5625b51dfdf8338fba8bb444b
parent317226e61c7269b97dafe8fd7524559ed64c64a2
[dev.ssa] cmd/compile: don't alloc new CSE classes

This reduces the time to compile
test/slice3.go on my laptop from ~12s to ~3.8s.
It reduces the max memory use from ~4.8gb to
~450mb.

This is still considerably worse than tip,
at 1s and 300mb respectively, but it's
getting closer.

Hopefully this will fix the build at long last.

Change-Id: Iac26b52023f408438cba3ea1b81dcd82ca402b90
Reviewed-on: https://go-review.googlesource.com/12566
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/cse.go