Description[release-branch.go1.2] cmd/gc: shorten name used for map bucket type
««« CL 15110044 / 95336afd420c
cmd/gc: shorten name used for map bucket type
Before:
type.struct { buckets *struct { overflow *struct { overflow *struct { overflow *struct { overflow *struct { overflow *<...>; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; oldbuckets *struct { overflow *struct { overflow *struct { overflow *struct { overflow *struct { overflow *<...>; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable } }
After:
type.map.bucket[string]*"".RangeTable
This makes debugging maps a little nicer, and it takes up less space in the binary.
R=golang-dev, r
CC=golang-dev, khr
https://codereview.appspot.com/15110044
»»»
Patch Set 1 #Patch Set 2 : diff -r d2862cc2bfc5 https://code.google.com/p/go #Patch Set 3 : diff -r d2862cc2bfc5 https://code.google.com/p/go #
MessagesTotal messages: 3
|