Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Issue 11275035: Introduce (private) ZLibFilter to dart:io. (Closed)

Created:
8 years, 1 month ago by Anders Johnsen
Modified:
7 years, 9 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Introduce (private) ZLibFilter to dart:io. This is to be used in gzip to handle http compression. BUG=

Patch Set 1 #

Patch Set 2 : Move bufferlength out as a top level constant. #

Total comments: 12

Patch Set 3 : Add InternalError class and LICENSE file. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+11554 lines, -0 lines) Patch
M runtime/bin/bin.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/builtin_impl_sources.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/builtin_natives.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/bin/common.dart View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A runtime/bin/filter.h View 1 chunk +70 lines, -0 lines 0 comments Download
A runtime/bin/filter.cc View 1 2 1 chunk +250 lines, -0 lines 0 comments Download
A runtime/bin/filter.dart View 1 chunk +36 lines, -0 lines 0 comments Download
A runtime/bin/filter_impl.dart View 1 chunk +24 lines, -0 lines 0 comments Download
M runtime/bin/io_sources.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/dart-runtime.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A runtime/third_party/zlib/LICENSE View 1 2 1 chunk +25 lines, -0 lines 1 comment Download
A runtime/third_party/zlib/README View 1 chunk +115 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/adler32.c View 1 chunk +179 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/compress.c View 1 chunk +80 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/crc32.h View 1 chunk +441 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/crc32.c View 1 chunk +425 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/deflate.h View 1 chunk +346 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/deflate.c View 1 chunk +1965 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/gzguts.h View 1 2 1 chunk +193 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/infback.c View 1 chunk +640 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/inffast.h View 1 chunk +11 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/inffast.c View 1 chunk +340 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/inffixed.h View 1 chunk +94 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/inflate.h View 1 chunk +122 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/inflate.c View 1 chunk +1496 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/inftrees.h View 1 chunk +62 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/inftrees.c View 1 chunk +306 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/trees.h View 1 chunk +128 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/trees.c View 1 chunk +1224 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/uncompr.c View 1 chunk +59 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/zconf.h View 1 chunk +506 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/zlib.h View 1 chunk +1744 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/zlib.gypi View 1 2 1 chunk +51 lines, -0 lines 2 comments Download
A runtime/third_party/zlib/zutil.h View 1 chunk +252 lines, -0 lines 0 comments Download
A runtime/third_party/zlib/zutil.c View 1 chunk +324 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Søren Gjesse
Some additional comments. Looks good, but it needs some tests before landing. Also add third_party/zlib ...
8 years, 1 month ago (2012-10-25 11:01:44 UTC) #1
Anders Johnsen
PTAL, I've added an InternalError as suggested. I'll add tests through HttpServer in the next ...
8 years, 1 month ago (2012-10-25 13:10:56 UTC) #2
Søren Gjesse
LGTM, feel free to land when it builds on all platforms. https://codereview.chromium.org/11275035/diff/2001/runtime/bin/filter.cc File runtime/bin/filter.cc (right): ...
8 years, 1 month ago (2012-10-25 13:54:45 UTC) #3
Søren Gjesse
7 years, 9 months ago (2013-03-04 08:23:57 UTC) #4
On 2012/10/25 13:54:45, Søren Gjesse wrote:
> LGTM, feel free to land when it builds on all platforms.
> 
> https://codereview.chromium.org/11275035/diff/2001/runtime/bin/filter.cc
> File runtime/bin/filter.cc (right):
> 
>
https://codereview.chromium.org/11275035/diff/2001/runtime/bin/filter.cc#newc...
> runtime/bin/filter.cc:125: } else {
> On 2012/10/25 13:10:56, ajohnsen wrote:
> > On 2012/10/25 11:01:44, Søren Gjesse wrote:
> > > Can't you create an external byte array here as well? I don't see any
> problem
> > of
> > > the buffer being larger than indicated by length. Maybe for very small
> values
> > of
> > > length you should still fallback to byte arrays in the Dart heap.
> > 
> > I like this idea! We are currently using buffers with sizes of 64k. That
> should
> > be okay. One concern: The GC does not know how much data we actually have
> > allocated. Should we add a TODO about adding an extra optional parameter to
> > NewExternalByteArray with the 'real size'?
> 
> At some point we probable need to give the VM some idea of how much external
> data is actually retained, but for now we can ignore it.
> 
>
https://codereview.chromium.org/11275035/diff/8001/runtime/third_party/zlib/L...
> File runtime/third_party/zlib/LICENSE (right):
> 
>
https://codereview.chromium.org/11275035/diff/8001/runtime/third_party/zlib/L...
> runtime/third_party/zlib/LICENSE:1: /* zlib.h -- interface of the 'zlib'
general
> purpose compression library
> I think you also need to update the LICENSE file in the repository root
> (http://code.google.com/p/dart/source/browse/branches/bleeding_edge/LICENSE).
> 
>
https://codereview.chromium.org/11275035/diff/8001/runtime/third_party/zlib/z...
> File runtime/third_party/zlib/zlib.gypi (right):
> 
>
https://codereview.chromium.org/11275035/diff/8001/runtime/third_party/zlib/z...
> runtime/third_party/zlib/zlib.gypi:1: # Copyright 2010 Google Inc. All Rights
> Reserved.
> Year 2012
> 
>
https://codereview.chromium.org/11275035/diff/8001/runtime/third_party/zlib/z...
> runtime/third_party/zlib/zlib.gypi:1: # Copyright 2010 Google Inc. All Rights
> Reserved.
> I looked briefly at the Chromium gyp file for zlib at:
>
http://src.chromium.org/viewvc/chrome/trunk/src/third_party/zlib/zlib.gyp?rev....
> 
> Looks like there might be some special settings needed for Mac OS and Windows.

This CL seems out of date, please close.

Powered by Google App Engine
This is Rietveld 408576698