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

Issue 2605413002: MHTML generation: discard serialized resources by the measure they are encoded. (Closed)

Created:
3 years, 11 months ago by carlosk
Modified:
3 years, 11 months ago
CC:
chromium-reviews, blink-reviews, mlamouri+watch-blink_chromium.org, kinuko+watch, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MHTML generation: discard serialized resources by the measure they are encoded. This change update MHTML generation code to avoid having both serialized and encoded copies of resources in memory. As pages being saved to MHTML can get to many MB in size this change avoids a peak in memory usage where both serialized and encoded versions of the same resource existed. This specific optimization is local to WebFrameSerializer but as it required replacing a wtf::Vector with a wtf::Deque as the container of resources that caused the need to update a few other files. BUG=658556 Committed: https://crrev.com/65ad0174d081840215c19f69ab819f19fbc667b9 Cr-Commit-Position: refs/heads/master@{#441567}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -27 lines) Patch
M third_party/WebKit/Source/core/frame/FrameSerializer.h View 3 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameSerializer.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameSerializer.cpp View 3 chunks +13 lines, -15 lines 4 comments Download
M third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
carlosk
dcheng@, lukasza@: PTAL.
3 years, 11 months ago (2016-12-30 03:05:04 UTC) #4
carlosk
https://codereview.chromium.org/2605413002/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/2605413002/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode312 third_party/WebKit/Source/web/WebFrameSerializer.cpp:312: resources.takeFirst(), *output->mutableData()); To make this clear: my assumption is ...
3 years, 11 months ago (2016-12-30 03:08:47 UTC) #5
Łukasz Anforowicz
This CL LGTM. I wonder if further improvements (to keep at most one serialized and/or ...
3 years, 11 months ago (2016-12-30 17:39:17 UTC) #8
dcheng
https://codereview.chromium.org/2605413002/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/2605413002/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode312 third_party/WebKit/Source/web/WebFrameSerializer.cpp:312: resources.takeFirst(), *output->mutableData()); On 2016/12/30 17:39:16, Łukasz Anforowicz wrote: > ...
3 years, 11 months ago (2017-01-03 22:31:16 UTC) #9
carlosk
Thanks. On 2016/12/30 17:39:17, Łukasz Anforowicz wrote: > This CL LGTM. > > I wonder ...
3 years, 11 months ago (2017-01-05 01:34:57 UTC) #10
dcheng
LGTM
3 years, 11 months ago (2017-01-05 01:37:27 UTC) #11
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/2605413002/1
3 years, 11 months ago (2017-01-05 01:46:20 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
3 years, 11 months ago (2017-01-05 03:35:40 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 03:38:16 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/65ad0174d081840215c19f69ab819f19fbc667b9
Cr-Commit-Position: refs/heads/master@{#441567}

Powered by Google App Engine
This is Rietveld 408576698