-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: statically initialize some interface values #15528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
Yes, please. The more we can do at link time the better. |
image/color/palette appears to be a good test case for this in the stdlib. |
josharian
added a commit
to josharian/go
that referenced
this issue
May 13, 2016
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 thenimage/color/palette compiled package from 103k to 34k * reduces the time to build the package in golang#15520 from 8s to 1.5s Fixes golang#15528 Change-Id: I317112da17aadb180c958ea328ab380f83e640b4
CL prepared for 1.8. Unstable url for those who want to peek. |
josharian
added a commit
to josharian/go
that referenced
this issue
May 17, 2016
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 thenimage/color/palette compiled package from 103k to 34k * reduces the time to build the package in golang#15520 from 8s to 1.5s Fixes golang#15528 Change-Id: I317112da17aadb180c958ea328ab380f83e640b4
josharian
added a commit
to josharian/go
that referenced
this issue
May 27, 2016
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 thenimage/color/palette compiled package from 103k to 34k * reduces the time to build the package in golang#15520 from 8s to 1.5s Fixes golang#6289 Fixes golang#15528 Change-Id: I317112da17aadb180c958ea328ab380f83e640b4
josharian
added a commit
to josharian/go
that referenced
this issue
Jun 19, 2016
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 golang#15520 from 8s to 1.5s Fixes golang#6289 Fixes golang#15528 Change-Id: I317112da17aadb180c958ea328ab380f83e640b4
josharian
added a commit
to josharian/go
that referenced
this issue
Jun 24, 2016
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 golang#15520 from 8s to 1.5s Fixes golang#6289 Fixes golang#15528 Change-Id: I317112da17aadb180c958ea328ab380f83e640b4
CL https://golang.org/cl/26668 mentions this issue. |
josharian
added a commit
to josharian/go
that referenced
this issue
Aug 31, 2016
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 golang#15520 from 8s to 1.5s Fixes golang#6289 Fixes golang#15528 Change-Id: I317112da17aadb180c958ea328ab380f83e640b4
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The code in #15520 generates a giant init function, aimed at setting up an array of interface values. The components are, however, entirely static: Static itab and static data. We should thus be able to create the entire array statically instead of making an init function.
cc @walken-google @randall77 @crawshaw
The text was updated successfully, but these errors were encountered: