]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: reuse the varint encoding buffer
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 20 Apr 2015 17:20:36 +0000 (10:20 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 21 Apr 2015 17:20:52 +0000 (17:20 +0000)
commit873483c682747e8ce881c1bf8ac4428a01836324
tree23b1199983a33b6f4048ebef47c5b33be7900f37
parent3c939b5348c32d232d0a84553fdbe850aa101969
cmd/internal/obj: reuse the varint encoding buffer

This reduces the number of allocations in the compiler
while building the stdlib by 15.66%.

No functional changes. Passes toolstash -cmp.

Change-Id: Ia21b37134a8906a4e23d53fdc15235b4aa7bbb34
Reviewed-on: https://go-review.googlesource.com/9085
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/internal/obj/objfile.go