commit | c1582e69def506093836a7cc6ba1e9c77c3b7a69 | [log] [tgz] |
---|---|---|
author | Chris Mumford <cmumford@google.com> | Sat Nov 10 12:58:49 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Nov 10 12:58:49 2018 |
tree | 3d57e4eee933d8e09fa5aeef1b6b928b58a34005 | |
parent | 809d8fb01773e476e122ad1739530caa3d02dfed [diff] |
Fix memory performance regression in file:///*.svgz filter. A speculative fix for a 7%-19.2% regression of memory use. This change releases the ZLib buffers used for Gzip inflation - releasing the memory as soon as it is no longer needed instead of waiting for the URLResponseBodyConsumer instance to be deleted. This change also fixes an incorrect reset of |zlib_wrapper_|, which was calling release() instead of reset(), when zlib would fail to initialize. This was likely a latent bug and not the cause of the regression. Bug: 901891 Change-Id: I52687f5614b7a76c52f4b9d5317deb33a299e4cb Reviewed-on: https://chromium-review.googlesource.com/c/1317922 Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Chris Mumford <cmumford@chromium.org> Cr-Commit-Position: refs/heads/master@{#607124}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .