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

Issue 4548080: code review 4548080: compress/lzw: do not use background goroutines (Closed)

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

Description

compress/lzw: 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 #

Total comments: 3

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

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

Patch Set 6 : diff -r 8fc8a4975c03 https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -98 lines) Patch
M src/pkg/compress/lzw/reader.go View 1 2 3 4 3 chunks +133 lines, -94 lines 0 comments Download
M src/pkg/compress/lzw/writer_test.go View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5
rsc
Hello golang-dev (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 11 months ago (2011-06-01 19:42:31 UTC) #1
nigeltao
http://codereview.appspot.com/4548080/diff/5001/src/pkg/compress/lzw/reader.go File src/pkg/compress/lzw/reader.go (right): http://codereview.appspot.com/4548080/diff/5001/src/pkg/compress/lzw/reader.go#newcode56 src/pkg/compress/lzw/reader.go:56: // overflow is the code at which hi overflows ...
13 years, 11 months ago (2011-06-02 10:53:14 UTC) #2
rsc
Hello golang-dev@googlegroups.com, nigeltao@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2011-06-03 16:57:15 UTC) #3
nigeltao
LGTM.
13 years, 11 months ago (2011-06-04 07:44:25 UTC) #4
rsc
13 years, 11 months ago (2011-06-07 18:37:09 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=9dfa626bfeb7 ***

compress/lzw: 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, nigeltao
CC=golang-dev
http://codereview.appspot.com/4548080
Sign in to reply to this message.

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