diff options
| author | Ilya Tocar <ilya.tocar@intel.com> | 2017-05-01 14:27:36 -0500 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-06-05 16:32:02 +0000 |
| commit | a4ee95c805fb77e594603bcd62d7858dc9e853ab (patch) | |
| tree | 8493667d75f0fbfab1b12d6b1821a9c2d668eda0 /src/encoding/json | |
| parent | d263e855977d49719ceea4da3b843bab5951dffb (diff) | |
| download | go-a4ee95c805fb77e594603bcd62d7858dc9e853ab.tar.xz | |
runtime: avoid division in gc
Replace int division with (cheaper) byte division in heapBitsSetType.
Provides noticeable speed-up:
GrowSlicePtr-6 181ns ± 3% 169ns ± 3% -6.85% (p=0.000 n=10+10)
Change-Id: I4064bb72e8e692023783b8f58d19491844c39382
Reviewed-on: https://go-review.googlesource.com/42290
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/encoding/json')
0 files changed, 0 insertions, 0 deletions
