]> Cypherpunks repositories - gostls13.git/commit
runtime: process ptr bitmaps one word at a time
authorKeith Randall <khr@golang.org>
Sat, 7 May 2022 01:40:17 +0000 (18:40 -0700)
committerKeith Randall <khr@google.com>
Mon, 8 Aug 2022 16:57:48 +0000 (16:57 +0000)
commitc3833a55433f4b2981253f64444fe5c3d1bc910a
tree3b2b04ae9c99f415f5626877acb50e14980fc618
parentb589208c8cc6e08239868f47e12c1449cd797bac
runtime: process ptr bitmaps one word at a time

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: I40d492b50d7f89d1b4261c2de58f6d255fa5e93e
Reviewed-on: https://go-review.googlesource.com/c/go/+/407036
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/compile/internal/reflectdata/reflect.go
src/reflect/type.go
src/runtime/mbitmap.go