]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: statically initialize some interface values
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 13 May 2016 00:22:47 +0000 (17:22 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 12 Sep 2016 14:31:26 +0000 (14:31 +0000)
commitdfc56a4cd313c9c5de37f4fadb14912286edc42f
treea3659d073d5e2a58b3a42daad8ccf17ac0f28356
parentb8eb5b53eadd10ed8c84b94a46301a3fc3715282
cmd/compile: statically initialize some interface values

When possible, emit static data rather than
init functions for interface values.

This:

* cuts 32k off cmd/go
* removes several error values from runtime init
* cuts the size of the image/color/palette compiled package from 103k to 34k
* reduces the time to build the package in #15520 from 8s to 1.5s

Fixes #6289
Fixes #15528

Change-Id: I317112da17aadb180c958ea328ab380f83e640b4
Reviewed-on: https://go-review.googlesource.com/26668
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/reflect.go
src/cmd/compile/internal/gc/sinit.go
test/fixedbugs/issue15528.go [new file with mode: 0644]