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

Issue 5536078: code review 5536078: compress/flate: shrink decompressor struct for better p... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by rmmh
Modified:
12 years, 9 months ago
Reviewers:
CC:
dave_cheney.net, minux1, rsc, golang-dev
Visibility:
Public.

Description

compress/flate: shrink decompressor struct for better performance structs containining pointers get treated as sizeof(struct)/sizeof(void*) potential pointers by the GC. Replacing embedded arrays with pointers to arrays shrinks the struct, reducing GC load. Fixes issue 2703.

Patch Set 1 #

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

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

Total comments: 2

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M src/pkg/compress/flate/inflate.go View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 31
rmmh
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 6 months ago (2012-01-20 10:09:47 UTC) #1
dave_cheney.net
wow.
13 years, 6 months ago (2012-01-20 10:34:16 UTC) #2
atom
http://codereview.appspot.com/5536078/diff/3001/src/pkg/compress/flate/inflate.go File src/pkg/compress/flate/inflate.go (right): http://codereview.appspot.com/5536078/diff/3001/src/pkg/compress/flate/inflate.go#newcode213 src/pkg/compress/flate/inflate.go:213: bits []int // size: maxLit + maxDist Has this ...
13 years, 6 months ago (2012-01-20 10:37:38 UTC) #3
dvyukov
http://codereview.appspot.com/5536078/diff/3001/src/pkg/compress/flate/inflate.go File src/pkg/compress/flate/inflate.go (right): http://codereview.appspot.com/5536078/diff/3001/src/pkg/compress/flate/inflate.go#newcode217 src/pkg/compress/flate/inflate.go:217: hist []byte // size: maxHist + maxDist size: maxHist
13 years, 6 months ago (2012-01-20 10:38:03 UTC) #4
dave_cheney.net
Hello, I just tried this CL on darwin/386 using the OP's original test case without ...
13 years, 6 months ago (2012-01-20 10:51:59 UTC) #5
atom
On 2012/01/20 10:51:59, dfc wrote: > Hello, > > I just tried this CL on ...
13 years, 6 months ago (2012-01-20 11:07:35 UTC) #6
rsc
On Fri, Jan 20, 2012 at 06:07, <0xE2.0x9A.0x9B@gmail.com> wrote: > I believe issue 2703 cannot ...
13 years, 6 months ago (2012-01-20 17:42:06 UTC) #7
rsc
I think this change looks good, but could you please add a test that both ...
13 years, 6 months ago (2012-01-20 17:42:35 UTC) #8
rmmh
Woops, this doesn't work completely... It just slows the leak by about 15%. (I wasn't ...
13 years, 6 months ago (2012-01-20 18:19:39 UTC) #9
rsc
It is too close to Go 1 to be making fundamental changes to core pieces ...
13 years, 6 months ago (2012-01-20 19:04:56 UTC) #10
atom
On 2012/01/20 19:04:56, rsc wrote: > It is too close to Go 1 to be ...
13 years, 6 months ago (2012-01-22 14:50:20 UTC) #11
dvyukov
On Sun, Jan 22, 2012 at 6:50 PM, <0xE2.0x9A.0x9B@gmail.com> wrote: > On 2012/01/20 19:04:56, rsc ...
13 years, 6 months ago (2012-01-23 06:40:19 UTC) #12
atom
On 2012/01/23 06:40:19, dvyukov wrote: > Ian Taylor proposed to split .data into 2 parts: ...
13 years, 6 months ago (2012-01-23 11:50:54 UTC) #13
rsc
On Mon, Jan 23, 2012 at 01:40, Dmitry Vyukov <dvyukov@google.com> wrote: > Ian Taylor proposed ...
13 years, 6 months ago (2012-01-23 15:10:37 UTC) #14
bradfitz
On Mon, Jan 23, 2012 at 3:50 AM, <0xE2.0x9A.0x9B@gmail.com> wrote: > > A major problem ...
13 years, 6 months ago (2012-01-23 19:12:16 UTC) #15
atom
On 2012/01/23 19:12:16, bradfitz wrote: > On Mon, Jan 23, 2012 at 3:50 AM, <mailto:0xE2.0x9A.0x9B@gmail.com> ...
13 years, 6 months ago (2012-01-24 13:16:06 UTC) #16
rsc
13 years, 2 months ago (2012-06-03 04:41:46 UTC) #17
dave_cheney.net
Hello, As you are now a contributor, would you be interested reviving this CL ? ...
13 years, 1 month ago (2012-07-06 10:44:24 UTC) #18
dave_cheney.net
Hello, I just benchmarked this CL against tip (b855390a295f) and it provides substantial improvement. Do ...
12 years, 12 months ago (2012-08-13 02:41:10 UTC) #19
rmmh
I'll submit the CL if desired. It's currently a bandage to hide how broken the ...
12 years, 12 months ago (2012-08-13 18:55:38 UTC) #20
dave_cheney.net
Can you please run hg mail again to bring this CL current with trunk. On ...
12 years, 12 months ago (2012-08-13 23:11:13 UTC) #21
dave_cheney.net
Can you please run hg mail again to bring this CL current with trunk.
12 years, 9 months ago (2012-10-22 05:00:48 UTC) #22
rmmh
Hello dave@cheney.net (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2012-10-25 06:57:36 UTC) #23
rmmh
Hello dave@cheney.net (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2012-10-25 07:00:52 UTC) #24
dave_cheney.net
On 2012/10/25 06:57:36, rmmh wrote: > Hello mailto:dave@cheney.net (cc: mailto:golang-dev@googlegroups.com), > > Please take another ...
12 years, 9 months ago (2012-10-25 07:26:17 UTC) #25
rmmh
Hello dave@cheney.net (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2012-10-25 07:27:26 UTC) #26
rmmh
Sorry about the spam, keep forgetting how change/mail works. I don't know how to do ...
12 years, 9 months ago (2012-10-25 07:28:41 UTC) #27
rmmh
r14401 seems to have stolen most of the performance improvements, I'm seeing fractions of a ...
12 years, 9 months ago (2012-10-25 08:05:32 UTC) #28
minux1
On Oct 25, 2012 5:56 PM, <hitchmanr@gmail.com> wrote: > I don't know how to do ...
12 years, 9 months ago (2012-10-25 10:04:09 UTC) #29
rsc
LGTM Thanks.
12 years, 9 months ago (2012-11-01 17:57:17 UTC) #30
rsc
12 years, 9 months ago (2012-11-01 17:57:31 UTC) #31
*** Submitted as http://code.google.com/p/go/source/detail?r=d6e11ab78b7d ***

compress/flate: shrink decompressor struct for better performance

Helps with issue 2703.

R=dave, minux.ma, rsc
CC=golang-dev
http://codereview.appspot.com/5536078

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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