Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(684)

Issue 13698043: code review 13698043: cmd/gc: don't generate algs for internal map types. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by remyoudompheng
Modified:
11 years, 7 months ago
Reviewers:
r, DMorsing, rsc, iant, khr1
CC:
golang-dev, DMorsing, r, khr1, rsc, iant
Visibility:
Public.

Description

cmd/gc: don't generate algs for internal map types. Fake types describing the internal structure of hashmaps are generated for use by precise GC. Generating hash and eq functions for these fake types slows down the build and wastes space: the go tool binary size is 13MB instead of 12MB, and the package size on amd64 is 48.7MB instead of 45.3MB.

Patch Set 1 #

Patch Set 2 : diff -r 0f036b4b1da5 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 0f036b4b1da5 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r b19d3a8c9357 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M src/cmd/gc/go.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/gc/reflect.c View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/cmd/gc/subr.c View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 7 months ago (2013-09-13 10:47:01 UTC) #1
DMorsing
LGTM.
11 years, 7 months ago (2013-09-13 10:54:21 UTC) #2
remyoudompheng
Is this ok to commit for Go 1.2 ? I consider it a regression w.r.t. ...
11 years, 7 months ago (2013-09-13 22:43:15 UTC) #3
r
LGTM from my end but get approval from rsc and iant as well. binary size ...
11 years, 7 months ago (2013-09-13 22:47:10 UTC) #4
khr1
LGTM. On Fri, Sep 13, 2013 at 3:47 PM, <r@golang.org> wrote: > LGTM from my ...
11 years, 7 months ago (2013-09-13 23:24:44 UTC) #5
rsc
LGTM
11 years, 7 months ago (2013-09-13 23:44:56 UTC) #6
iant
LGTM
11 years, 7 months ago (2013-09-14 00:13:06 UTC) #7
remyoudompheng
11 years, 7 months ago (2013-09-14 07:30:40 UTC) #8
*** Submitted as https://code.google.com/p/go/source/detail?r=a6d1a3f0411a ***

cmd/gc: don't generate algs for internal map types.

Fake types describing the internal structure of hashmaps are
generated for use by precise GC.

Generating hash and eq functions for these fake types slows down
the build and wastes space: the go tool binary size is 13MB
instead of 12MB, and the package size on amd64 is 48.7MB instead
of 45.3MB.

R=golang-dev, daniel.morsing, r, khr, rsc, iant
CC=golang-dev
https://codereview.appspot.com/13698043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b