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

Issue 32086: add GZIP input and output zero copy streams

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 1 month ago by brian.olson
Modified:
15 years ago
Reviewers:
kenton
Base URL:
http://protobuf.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Create classes GZIPInputStream and GZIPOutputStream, subclasses of the C++ ZeroCopy*Stream classes, data-compatible with similar Java classes under java.util.zip.* and command line gzip and gunzip. Includes tests for internal consistency and compatibility with command line gzip and gunzip.

Patch Set 1 #

Patch Set 2 : added files #

Total comments: 62

Patch Set 3 : response to first round of code review #

Total comments: 35

Patch Set 4 : response to review #

Total comments: 15

Patch Set 5 : constructor reorg, zlib/gzip mode, cleanup #

Total comments: 14

Patch Set 6 : s/GZIP/Gzip/ and some other minor cleanup #

Total comments: 4

Patch Set 7 : license notice for gzip test script, author set for new files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+858 lines, -3 lines) Patch
M configure.ac View 3 2 chunks +15 lines, -0 lines 0 comments Download
M src/Makefile.am View 1 2 3 4 5 6 chunks +24 lines, -2 lines 0 comments Download
A src/google/protobuf/io/gzip_stream.h View 2 3 4 5 6 1 chunk +178 lines, -0 lines 0 comments Download
A src/google/protobuf/io/gzip_stream.cc View 2 3 4 5 6 1 chunk +296 lines, -0 lines 0 comments Download
A src/google/protobuf/io/gzip_stream_unittest.sh View 3 4 5 6 1 chunk +44 lines, -0 lines 0 comments Download
M src/google/protobuf/io/zero_copy_stream_impl.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/google/protobuf/io/zero_copy_stream_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M src/google/protobuf/io/zero_copy_stream_unittest.cc View 1 2 3 4 5 6 chunks +140 lines, -1 line 0 comments Download
A src/google/protobuf/testing/zcgunzip.cc View 2 3 4 5 6 1 chunk +73 lines, -0 lines 0 comments Download
A src/google/protobuf/testing/zcgzip.cc View 2 3 4 5 6 1 chunk +79 lines, -0 lines 0 comments Download

Messages

Total messages: 11
kenton
We're definitely going to need to have the configure script auto-detect zlib and disable this ...
15 years ago (2009-04-02 21:48:38 UTC) #1
brian.olson
Things fixed, new patch uploaded. Includes changes to configure.ac and src/Makefile.am http://codereview.appspot.com/32086/diff/7/1013 File src/google/protobuf/io/gzip_stream.cc (right): ...
15 years ago (2009-04-03 03:13:08 UTC) #2
kenton
Almost done. Thanks for doing this, BTW -- I think a lot of people should ...
15 years ago (2009-04-03 22:03:52 UTC) #3
brian.olson
Things replied to (I think I got them all) and new patch uploaded. http://codereview.appspot.com/32086/diff/7/1015 File ...
15 years ago (2009-04-06 20:11:08 UTC) #4
kenton
Sorry, more issues. If you are sick of this, feel free to just let me ...
15 years ago (2009-04-07 23:18:48 UTC) #5
brian.olson
The big difference in this round is the constructor arguments. Also the format argument actually ...
15 years ago (2009-04-09 01:03:01 UTC) #6
kenton
http://codereview.appspot.com/32086/diff/19/28 File src/google/protobuf/io/gzip_stream.h (right): http://codereview.appspot.com/32086/diff/19/28#newcode13 Line 13: class LIBPROTOBUF_EXPORT GZIPInputStream : public ZeroCopyInputStream { On ...
15 years ago (2009-04-09 19:43:37 UTC) #7
brian.olson
new sources have header copied from similar sources. s/GZIP/Gzip/g and a few other cleanups. http://codereview.appspot.com/32086/diff/46/2029 ...
15 years ago (2009-04-09 23:45:07 UTC) #8
kenton
Just two trivial things left... http://codereview.appspot.com/32086/diff/6001/6009 File src/google/protobuf/io/gzip_stream.cc (right): http://codereview.appspot.com/32086/diff/6001/6009#newcode31 Line 31: // Author: kenton@google.com ...
15 years ago (2009-04-14 00:46:47 UTC) #9
brian.olson
Done http://codereview.appspot.com/32086/diff/6001/6009 File src/google/protobuf/io/gzip_stream.cc (right): http://codereview.appspot.com/32086/diff/6001/6009#newcode31 Line 31: // Author: kenton@google.com (Kenton Varda) On 2009/04/14 ...
15 years ago (2009-04-14 01:24:18 UTC) #10
kenton
15 years ago (2009-04-14 17:31:55 UTC) #11
LGTM

I'll submit this with the mass of patches I'm hoping to get in this week
sometime.
Sign in to reply to this message.

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