commit | 4098ab3ff4de53df4bf2e9b2db0f49e4d12b3d9c | [log] [tgz] |
---|---|---|
author | Cherry Zhang <cherryyz@google.com> | Mon May 11 15:11:36 2020 -0400 |
committer | Cherry Zhang <cherryyz@google.com> | Tue May 12 14:46:37 2020 +0000 |
tree | 87d15c3bb4a4b0b85ab71052c5c584c47c730388 | |
parent | 25e9417b9807bc6166b127f698d145ce060cd23f [diff] |
[dev.link] cmd/link: reduce allocations in Preload Don't create loader.Syms until LoadFull (it will be gone soon anyway.) Preallocate loader.objSym array. Don't create loader.values until preloading is done. Linking cmd/compile: name old alloc/op new alloc/op delta Loadlib_GC 36.2MB ± 0% 20.0MB ± 0% -44.91% (p=0.016 n=5+4) Change-Id: I82eddcfa7fb8fc4e84e8174a47e59cf1183dd83b Reviewed-on: https://go-review.googlesource.com/c/go/+/233341 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Jeremy Faller <jeremy@golang.org>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.