mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: process ptr bitmaps one word at a time
[This is a retry of CL 407036 + its revert CL 422394. The only content change is the 1-line change in cmd/internal/obj/objfile.go.] Read the bitmaps one uintptr at a time instead of one byte at a time. Performance so far: Allocation heavy, no retention: ~30% faster in heapBitsSetType Scan heavy, ~no allocation: ~even in scanobject Change-Id: I04d899e1dbd23e989e9f552cdc1880318779c14c Reviewed-on: https://go-review.googlesource.com/c/go/+/422635 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@google.com> Run-TryBot: Keith Randall <khr@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
6a9c674a09
commit
e49e876455
4 changed files with 91 additions and 18 deletions
|
|
@ -354,7 +354,6 @@ func (w *writer) Sym(s *LSym) {
|
|||
case strings.HasPrefix(s.Name, "go:string."),
|
||||
strings.HasPrefix(name, "type:.namedata."),
|
||||
strings.HasPrefix(name, "type:.importpath."),
|
||||
strings.HasPrefix(name, "runtime.gcbits."),
|
||||
strings.HasSuffix(name, ".opendefer"),
|
||||
strings.HasSuffix(name, ".arginfo0"),
|
||||
strings.HasSuffix(name, ".arginfo1"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue