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

Issue 4983042: code review 4983042: godoc index: first step towards reducing index size (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by gri
Modified:
13 years, 6 months ago
Reviewers:
CC:
dsymonds, golang-dev
Visibility:
Public.

Description

godoc index: first step towards reducing index size - canonicalize package descriptors - remove duplicate storage of file paths - reduces (current) written index file by approx 3.5MB (from 28434237B to 24686643B, or 13%) - next step: untangle DAG (when serializing, using gob, the index dag explodes into an index tree)

Patch Set 1 #

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

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

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

Patch Set 5 : diff -r 070b7cc84e48 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -12 lines) Patch
M src/cmd/godoc/index.go View 1 2 3 8 chunks +40 lines, -12 lines 0 comments Download

Messages

Total messages: 4
gri
Hello dsymonds@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 6 months ago (2011-08-31 00:12:51 UTC) #1
dsymonds
LGTM You could replace if pak, found := x.packages[key]; found { with if pak := ...
13 years, 6 months ago (2011-08-31 01:40:14 UTC) #2
gri
simplified to: key := path + ":" + name pak := x.packages[key] if pak == ...
13 years, 6 months ago (2011-08-31 01:45:56 UTC) #3
gri
13 years, 6 months ago (2011-08-31 01:47:21 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=d88a2e32898d ***

godoc index: first step towards reducing index size

- canonicalize package descriptors
- remove duplicate storage of file paths
- reduces (current) written index file by approx 3.5MB
(from 28434237B to 24686643B, or 13%)

- next step: untangle DAG (when serializing, using
gob, the index dag explodes into an index tree)

R=dsymonds
CC=golang-dev
http://codereview.appspot.com/4983042
Sign in to reply to this message.

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