Chromium Code Reviews
DescriptionMHTML 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
Messages
Total messages: 18 (9 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||