go/src
Josh Bleecher Snyder a14a8a3eb9 cmd/compile: collapse runs of string constants in walkprint
This reduces the code footprint of code like:

println("foo=", foo, "bar=", bar)

which is fairly common in the runtime.

Prior to this change, this makes function calls to print each of:

"foo=", " ", foo, " ", "bar=", " ", bar, "\n"

After this change, this prints:

"foo= ", foo, " bar= ", bar, "\n"

This shrinks the hello world binary by 0.4%.
More importantly, this improves the instruction
density of important runtime routines.

Change-Id: I8971bdf5382fbaaf4a82bad4442f9da07c28d395
Reviewed-on: https://go-review.googlesource.com/55098
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2017-08-15 21:54:48 +00:00
..
archive archive/tar: re-implement USTAR path splitting 2017-08-15 05:40:22 +00:00
bufio Revert "bufio: make Reader.Peek invalidate Unreads" 2017-07-06 03:06:44 +00:00
builtin
bytes bytes: speed up Fields and FieldsFunc 2017-08-14 21:08:51 +00:00
cmd cmd/compile: collapse runs of string constants in walkprint 2017-08-15 21:54:48 +00:00
compress
container
context
crypto crypto/tls: disallow handshake messages fragmented across CCS 2017-08-15 18:45:06 +00:00
database/sql database/sql: fail on unsupported options when context is un-cancellable 2017-08-09 20:06:20 +00:00
debug debug/macho: make Type implements fmt.(Go)Stringer interfaces 2017-08-15 00:13:36 +00:00
encoding encoding/asn1: handle application tag in Marshal 2017-08-15 18:45:39 +00:00
errors
expvar
flag flag: make default Usage prefer CommandLine's output over just os.Stderr 2017-08-08 01:47:47 +00:00
fmt fmt: add ascii fast path for decoding verbs 2017-08-14 12:25:45 +00:00
go go/types: remove nil check around range 2017-08-10 12:17:11 +00:00
hash all: gofmt 2017-06-21 03:14:30 +00:00
html html: updated entity spec link 2017-08-08 04:29:35 +00:00
image image/gif: fix writeImageBlock with SubImages 2017-06-16 05:45:48 +00:00
index/suffixarray
internal runtime, internal/cpu: CPU capabilities detection for ppc64x 2017-08-14 12:16:42 +00:00
io io/ioutil: add example for ReadFile 2017-07-15 23:28:44 +00:00
log log: adds a Logger Output method Example 2017-07-16 03:57:11 +00:00
math math/big: improve performance for AddMulVVW and mulAddVWW for ppc64x 2017-08-11 13:59:52 +00:00
mime
net net/http: various small cleanups 2017-08-14 16:37:27 +00:00
os os: remove duplicate check from windows os.Stat 2017-07-20 07:43:15 +00:00
path path/filepath: fix TestGlobError 2017-06-15 21:53:23 +00:00
plugin plugin: mention that there are known bugs with plugins 2017-07-28 00:29:08 +00:00
reflect cmd/compile: generate makechan calls with int arguments 2017-08-15 05:54:24 +00:00
regexp regexp: example for MatchString function 2017-07-15 21:13:35 +00:00
runtime cmd/compile: insert ' ' and \n at beginning of walkprint 2017-08-15 21:54:30 +00:00
sort sort: add example for Strings 2017-07-15 23:17:23 +00:00
strconv strconv: cleanup variable declarations in ParseUint 2017-08-15 04:24:52 +00:00
strings strings: use slice instead of list and array in Fields comment 2017-08-14 21:25:53 +00:00
sync sync: delete a sentence from the Map docs 2017-07-21 22:00:47 +00:00
syscall syscall: really use utimensat for UtimesNano on Solaris 2017-08-15 16:56:03 +00:00
testing testing: explain how SkipNow and FailNow stop execution 2017-08-09 11:47:38 +00:00
text text/template: support indexing into *int* maps 2017-08-12 00:21:16 +00:00
time time: remove unused parameter 2017-08-14 02:22:20 +00:00
unicode unicode: move scripts from FoldCategories to FoldScripts 2017-06-15 01:05:31 +00:00
unsafe
vendor/golang_org/x
Make.dist
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.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc