• Russ Cox's avatar
    cmd/gc: shorten name used for map bucket type · 20f99ffa
    Russ Cox authored
    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://golang.org/cl/15110044
    20f99ffa
fmt.c 36.4 KB