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

Issue 2363013003: Blimp: use dynamically resized decompression buffer vs. fixed size. (Closed)

Created:
4 years, 2 months ago by Kevin M
Modified:
4 years, 2 months ago
Reviewers:
scf, CJ
CC:
chromium-reviews, cbentzel+watch_chromium.org, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Blimp: use dynamically resized decompression buffer vs. fixed size. The current decompression code uses the maximum packet length as a convenient upper bound for the maximum decompressed packet length. When the length was raised to 20MB, this lazy convenience morphed into a RAM suck. This CL grows the decompression buffer across multiple calls to inflate() until the entire input has been decompressed. R=scf@chromium.org,lethalantidote@chromium.org BUG= Committed: https://crrev.com/36c922341b0da49622ea02fabc7ce73356d89c25 Cr-Commit-Position: refs/heads/master@{#421257}

Patch Set 1 #

Total comments: 14

Patch Set 2 : scf feedback #

Total comments: 4

Patch Set 3 : lethalantidote feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -35 lines) Patch
M blimp/net/compressed_packet_reader.h View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M blimp/net/compressed_packet_reader.cc View 1 2 4 chunks +66 lines, -31 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
Kevin M
4 years, 2 months ago (2016-09-23 21:47:14 UTC) #2
scf
It would be nice if somehow this area could be unit tested. There are a ...
4 years, 2 months ago (2016-09-23 22:14:18 UTC) #3
Kevin M
Regarding tests: there is already a pretty big suite of tests which, among other things, ...
4 years, 2 months ago (2016-09-23 23:16:42 UTC) #4
CJ
The CL description is a little confusing. It seems like this CL is more bounding ...
4 years, 2 months ago (2016-09-23 23:17:22 UTC) #5
Kevin M
Can you specify which parts of the description are confusing? Upon re-reading it, I only ...
4 years, 2 months ago (2016-09-23 23:27:57 UTC) #6
Kevin M
4 years, 2 months ago (2016-09-23 23:28:04 UTC) #7
CJ
On 2016/09/23 23:27:57, Kevin M wrote: > Can you specify which parts of the description ...
4 years, 2 months ago (2016-09-23 23:30:21 UTC) #8
Kevin M
LOL! You have a point.
4 years, 2 months ago (2016-09-23 23:31:14 UTC) #9
CJ
https://codereview.chromium.org/2363013003/diff/20001/blimp/net/compressed_packet_reader.cc File blimp/net/compressed_packet_reader.cc (right): https://codereview.chromium.org/2363013003/diff/20001/blimp/net/compressed_packet_reader.cc#newcode86 blimp/net/compressed_packet_reader.cc:86: // Repeatedly compress |drainable_input| until it's fully consumed, growing ...
4 years, 2 months ago (2016-09-23 23:42:16 UTC) #11
Kevin M
Thanks for keeping me honest, CJ. ;) https://codereview.chromium.org/2363013003/diff/20001/blimp/net/compressed_packet_reader.cc File blimp/net/compressed_packet_reader.cc (right): https://codereview.chromium.org/2363013003/diff/20001/blimp/net/compressed_packet_reader.cc#newcode86 blimp/net/compressed_packet_reader.cc:86: // Repeatedly ...
4 years, 2 months ago (2016-09-26 17:52:30 UTC) #12
scf
lgtm https://codereview.chromium.org/2363013003/diff/1/blimp/net/compressed_packet_reader.cc File blimp/net/compressed_packet_reader.cc (right): https://codereview.chromium.org/2363013003/diff/1/blimp/net/compressed_packet_reader.cc#newcode24 blimp/net/compressed_packet_reader.cc:24: constexpr double kDecompressionGrowthFactor = 2.0; On 2016/09/23 23:16:42, ...
4 years, 2 months ago (2016-09-26 20:18:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2363013003/40001
4 years, 2 months ago (2016-09-27 17:36:13 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-27 17:48:43 UTC) #19
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 17:51:13 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/36c922341b0da49622ea02fabc7ce73356d89c25
Cr-Commit-Position: refs/heads/master@{#421257}

Powered by Google App Engine
This is Rietveld 408576698