]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/gc: cache commonly used Ptrto types
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 29 Apr 2015 00:08:28 +0000 (17:08 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 29 Apr 2015 23:18:54 +0000 (23:18 +0000)
commite64764c8d03cbc4bd01d6df5c2c833cb6792f6cd
tree933ee6011234beaebb58801128934aca5ec0e1f2
parent2385f692e861d3eebb6487353d62c9d6d38d424a
cmd/internal/gc: cache commonly used Ptrto types

Reduces allocations in the compiler by ~1.5%.

No functional changes. Passes toolstash -cmp.

Change-Id: I2416f7fb0aaf9b7d6783c79e840039ad8fa7b5a3
Reviewed-on: https://go-review.googlesource.com/9419
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/internal/gc/subr.go