From: Dmitriy Vyukov Date: Sun, 24 Aug 2014 08:04:51 +0000 (+0400) Subject: runtime: cache unrolled GC bitmask X-Git-Tag: go1.4beta1~738 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b91223edd19590b4ac79ae14b66b8d5a80825e36;p=gostls13.git runtime: cache unrolled GC bitmask Cache unrolled GC bitmask for types up to 64/32K on 64/32-bit systems, this corresponds to up to 4K cached bitmask. Perf builders say that 2% of time is spent in unrollgcproginplace_m/unrollgcprog1 on http benchmark: http://goperfd.appspot.com/log/f42045f45bf61a0da53b724a7c8567824a0ad6c9 LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews, khr, rlh https://golang.org/cl/122680043 --- diff --git a/src/pkg/runtime/malloc.go b/src/pkg/runtime/malloc.go index 578fbd1c2d..ffe571a18a 100644 --- a/src/pkg/runtime/malloc.go +++ b/src/pkg/runtime/malloc.go @@ -28,7 +28,7 @@ const ( bitsMask = 1<