]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: move testdclstack out of the xdcl_list loop
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 15 Mar 2016 04:01:43 +0000 (21:01 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 15 Mar 2016 04:15:41 +0000 (04:15 +0000)
commit11a80860ada89b5ce8fc34ee2d91f73dfa89ab7b
treed709514c793ea1841e9223fd28157552c123826d
parentc45c51534845121da77ed5e0fbe4e0ecfff8c4bf
cmd/compile: move testdclstack out of the xdcl_list loop

This is a band-aid, but it fixes the problem
until a deeper fix is in place.

Testing with genpkg -n 50000, I see:

Before:

      154.67 real       184.66 user         3.15 sys

After:

       61.82 real        96.99 user         2.17 sys

Fixes #14781.

Change-Id: I24c7822d60c289bdd6a18a7840b984954c95f7d4
Reviewed-on: https://go-review.googlesource.com/20696
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/parser.go