1
0
mirror of https://github.com/golang/go synced 2024-11-24 07:20:02 -07:00
go/src
Robert Griesemer b5f81eae17 cmd/compile/internal/syntax: replace inlined statement lists with syntax.BlockStmt
This simplifies the code and removes a premature optimization.
It increases the amount of allocated syntax.Node space by ~0.4%
for parsing all of std lib, which is negligible.

Before the change (best of 5 runs):

  $ go test -run StdLib -fast
  parsed 1517022 lines (3394 files) in 793.487886ms (1911840 lines/s)
  allocated 387.086Mb (267B/line, 487.828Mb/s)

After the change (best of 5 runs):

  $ go test -run StdLib -fast
  parsed 1516911 lines (3392 files) in 805.028655ms (1884294 lines/s)
  allocated 388.466Mb (268B/line, 482.549Mb/s)

Change-Id: Id19d6210fdc62393862ba3b04913352d95c599be
Reviewed-on: https://go-review.googlesource.com/38439
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2017-03-22 22:37:08 +00:00
..
archive
bufio
builtin
bytes bytes: fix typo in comment 2017-03-22 19:41:54 +00:00
cmd cmd/compile/internal/syntax: replace inlined statement lists with syntax.BlockStmt 2017-03-22 22:37:08 +00:00
compress
container
context
crypto crypto/*: fix spelling of 'below' 2017-03-20 16:03:18 +00:00
database/sql
debug
encoding encoding/xml: format test output using subtests 2017-03-22 21:18:23 +00:00
errors
expvar
flag flag: validate Int and Uint values to be in range 2017-03-21 17:00:26 +00:00
fmt
go go/build: remove unused returnImports parameter 2017-03-21 02:47:36 +00:00
hash hash/crc32: improve performance for ppc64le 2017-03-17 12:28:57 +00:00
html text/template,html/template: state that Funcs must happen before parsing 2017-03-21 04:07:35 +00:00
image image/png: decode Gray8 transparent images. 2017-03-17 07:50:05 +00:00
index/suffixarray
internal
io
log
math
mime mime: handling invalid mime media parameters 2017-03-17 13:59:31 +00:00
net net/http: fix possible nil pointer dereference in TestOnlyWriteTimeout 2017-03-22 17:04:05 +00:00
os syscall, os: fix FreeBSD 9 build 2017-03-21 22:37:27 +00:00
path
plugin
reflect runtime: remove unused *chantype parameters 2017-03-21 17:10:16 +00:00
regexp
runtime runtime/internal/atomic: Remove unnecessary checks for GOARCH_ppc64 2017-03-22 18:14:41 +00:00
sort
strconv strconv: optimize decimal ints formatting with smallsString 2017-03-22 16:03:28 +00:00
strings
sync
syscall syscall, os: fix FreeBSD 9 build 2017-03-21 22:37:27 +00:00
testing
text text/template,html/template: state that Funcs must happen before parsing 2017-03-21 04:07:35 +00:00
time
unicode
unsafe
vendor/golang_org/x
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc