]> Cypherpunks repositories - gostls13.git/commit
runtime: Improve scanning performance
authorRick Hudson <rlh@golang.org>
Wed, 22 Apr 2015 19:06:35 +0000 (15:06 -0400)
committerRick Hudson <rlh@golang.org>
Thu, 23 Apr 2015 20:27:46 +0000 (20:27 +0000)
commit77f56af0bc2932b94506f1963228a33c26c8b289
tree83fcfd58e7bfe191db801922365d9f86a6e0bb94
parentaef54d40ac514cc3dac4b24d0c9a89e0ab027a44
runtime: Improve scanning performance

To achieve a 2% improvement in the garbage benchmark this CL removes
an unneeded assert and avoids one hbits.next() call per object
being scanned.

Change-Id: Ibd542d01e9c23eace42228886f9edc488354df0d
Reviewed-on: https://go-review.googlesource.com/9244
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mgcmark.go