aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2017-05-22 06:40:06 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2017-08-15 21:54:48 +0000
commita14a8a3eb99658b6a0856b664cf900c861a2e306 (patch)
tree1bc76ed58ab096eb5b3664dcdc8ad5e32244399f /src/testing/testing.go
parent9de7990054184381f1c520563d60175f821e7d7f (diff)
downloadgo-a14a8a3eb99658b6a0856b664cf900c861a2e306.tar.xz
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>
Diffstat (limited to 'src/testing/testing.go')
0 files changed, 0 insertions, 0 deletions