mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: add fast version of getArgInfo
getArgInfo is called a lot during stack copying. In the common case it doesn't do much work, but it cannot be inlined. This change works around that. name old time/op new time/op delta StackCopyPtr-8 108ms ± 5% 96ms ± 4% -10.40% (p=0.000 n=20+20) StackCopy-8 82.6ms ± 3% 78.4ms ± 6% -5.15% (p=0.000 n=19+20) StackCopyNoCache-8 130ms ± 3% 122ms ± 3% -6.44% (p=0.000 n=20+20) Change-Id: If7d8a08c50a4e2e76e4331b399396c5dbe88c2ce Reviewed-on: https://go-review.googlesource.com/108945 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
parent
0fd427fda7
commit
13cd006139
2 changed files with 20 additions and 2 deletions
|
|
@ -49,6 +49,7 @@ func TestIntendedInlining(t *testing.T) {
|
|||
"fastrand",
|
||||
"float64bits",
|
||||
"funcPC",
|
||||
"getArgInfoFast",
|
||||
"getm",
|
||||
"isDirectIface",
|
||||
"itabHashFunc",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue