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

Issue 4548079: code review 4548079: compress/flate: do not use background goroutines (Closed)

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

Description

compress/flate: do not use background goroutines Programs expect that Read and Write are synchronous. The background goroutines make the implementation a little easier, but they introduce asynchrony that trips up calling code. Remove them.

Patch Set 1 #

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

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

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

Total comments: 8

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+429 lines, -441 lines) Patch
M src/pkg/compress/flate/deflate.go View 1 2 3 4 9 chunks +267 lines, -341 lines 0 comments Download
M src/pkg/compress/flate/deflate_test.go View 1 2 chunks +7 lines, -8 lines 0 comments Download
M src/pkg/compress/flate/inflate.go View 1 16 chunks +155 lines, -92 lines 0 comments Download

Messages

Total messages: 5
rsc
Hello golang-dev (cc: golang-dev@googlegroups.com, krasin), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 10 months ago (2011-06-01 19:42:25 UTC) #1
krasin
http://codereview.appspot.com/4548079/diff/6001/src/pkg/compress/flate/deflate.go File src/pkg/compress/flate/deflate.go (right): http://codereview.appspot.com/4548079/diff/6001/src/pkg/compress/flate/deflate.go#newcode206 src/pkg/compress/flate/deflate.go:206: // init Looks like an obsolete comment http://codereview.appspot.com/4548079/diff/6001/src/pkg/compress/flate/deflate.go#newcode397 src/pkg/compress/flate/deflate.go:397: ...
13 years, 10 months ago (2011-06-01 20:41:38 UTC) #2
rsc
http://codereview.appspot.com/4548079/diff/6001/src/pkg/compress/flate/deflate.go File src/pkg/compress/flate/deflate.go (right): http://codereview.appspot.com/4548079/diff/6001/src/pkg/compress/flate/deflate.go#newcode206 src/pkg/compress/flate/deflate.go:206: // init On 2011/06/01 20:41:38, krasin wrote: > Looks ...
13 years, 10 months ago (2011-06-01 21:15:33 UTC) #3
krasin
LGTM http://codereview.appspot.com/4548079/diff/6001/src/pkg/compress/flate/deflate.go File src/pkg/compress/flate/deflate.go (right): http://codereview.appspot.com/4548079/diff/6001/src/pkg/compress/flate/deflate.go#newcode397 src/pkg/compress/flate/deflate.go:397: d.fill = (*compressor).fillStore On 2011/06/01 21:15:34, rsc wrote: ...
13 years, 10 months ago (2011-06-01 21:30:49 UTC) #4
rsc
13 years, 10 months ago (2011-06-02 13:32:42 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=9d9393655bd7 ***

compress/flate: do not use background goroutines

Programs expect that Read and Write are synchronous.
The background goroutines make the implementation
a little easier, but they introduce asynchrony that
trips up calling code.  Remove them.

R=golang-dev, krasin
CC=golang-dev
http://codereview.appspot.com/4548079
Sign in to reply to this message.

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