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
cmd/compile: do more static initialization at compile time rather than runtime #7599
Comments
Commit 632217a fixed the specific case of statically initializing function values, at least when referring to global functions (which turns out to be fairly common). It should be possible to also statically initialize function literals like in:
but as of tip this still uses dynamic initialization. |
I started on this but given the extent of the changes, I'd prefer to rewrite sinit.go to be idiomatic first, to make it easier to work with. That puts this out of scope for 1.5. Moving to 1.6; holler if you disagree. |
The text was updated successfully, but these errors were encountered: