-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dev.link] cmd/link: use function address directly in pclntab generation
If we are internal linking a static executable, in pclntab generation, the function addresses are known, so we can just use them directly instead of emitting relocations. For external linking or other build modes, we are generating a relocatable binary so we still need to emit relocations. Reduce some allocations: for linking cmd/compile, name old alloc/op new alloc/op delta Pclntab_GC 38.8MB ± 0% 36.4MB ± 0% -6.19% (p=0.008 n=5+5) TODO: can we also do this in DWARF generation? Change-Id: I43920d930ab1da97c205871027e01844a07a5e60 Reviewed-on: https://go-review.googlesource.com/c/go/+/228478 Run-TryBot: Cherry Zhang <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Than McIntosh <[email protected]>
- Loading branch information
Showing
2 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters