diff options
| author | Russ Cox <rsc@golang.org> | 2014-03-11 23:58:24 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-03-11 23:58:24 -0400 |
| commit | d5887c5aaca74080c4b167e11559305c7154901c (patch) | |
| tree | 8bf4f585fb7bff6f238f469323f11c2cad3e11cd /src/pkg/runtime/stack.c | |
| parent | ab844022eeedc6c16d0cdb7fb6fee01dd9e6307a (diff) | |
| download | go-d5887c5aaca74080c4b167e11559305c7154901c.tar.xz | |
test/run: make errorcheck tests faster
Some of the errorcheck tests have many many identical regexps.
Use a map to avoid storing the compiled form many many times
in memory. Change the filterRe to a simple string to avoid
the expense of those regexps as well.
Cuts the time for run.go on index2.go by almost 50x.
Noticed during debugging of issue 7344.
LGTM=bradfitz
R=bradfitz, josharian
CC=golang-codereviews
https://golang.org/cl/74380043
Diffstat (limited to 'src/pkg/runtime/stack.c')
0 files changed, 0 insertions, 0 deletions
