]> Cypherpunks repositories - gostls13.git/commit
cmd/link: allocate small []byte reads together
authorDavid Crawshaw <crawshaw@golang.org>
Mon, 29 Feb 2016 02:58:57 +0000 (17:58 -0900)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 29 Feb 2016 18:45:35 +0000 (18:45 +0000)
commit36f25a7e7ba3d5527cee8f4ef645827085243e59
tree07600b73f183bb8ab2349e09e1b1c5a97c5762e9
parentf4717a902e54d1e532fd21f1676a225523c67649
cmd/link: allocate small []byte reads together

Reduces number of memory allocations by 12%:

Before: 1816664
After:  1581591

Small speed improvement.

Change-Id: I61281fb852e8e31851a350e3ae756676705024a4
Reviewed-on: https://go-review.googlesource.com/20027
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/objfile.go