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

Issue 2075033003: Make SdchDictionaryFetcher free more memory when done. (Closed)

Created:
4 years, 6 months ago by mmenke
Modified:
4 years, 6 months ago
Reviewers:
xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make SdchDictionaryFetcher free more memory when done. It was just calling std::string::clear() on the string it downloads dictionaries to when a fetch is complete, which may not free the memory taken up by the string. As the fetcher exists for the lifetime of the Profile, and this buffer can be a couple hundred k, this can waste a fair bit of RAM. BUG=620853 Committed: https://crrev.com/3bbfea923d0edbbde05223076f969ac6a44ba234 Cr-Commit-Position: refs/heads/master@{#400464}

Patch Set 1 #

Patch Set 2 : Oops #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M net/url_request/sdch_dictionary_fetcher.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M net/url_request/sdch_dictionary_fetcher.cc View 4 chunks +4 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (6 generated)
mmenke
Helen: I went with the unique_ptr + reset() approach because we don't store the whole ...
4 years, 6 months ago (2016-06-17 17:57:06 UTC) #3
xunjieli
I talked to Matt offline and understood this change better. This is solution (3) mentioned ...
4 years, 6 months ago (2016-06-17 18:26:30 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2075033003/40001
4 years, 6 months ago (2016-06-17 18:34:20 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 6 months ago (2016-06-17 18:39:13 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 18:41:37 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3bbfea923d0edbbde05223076f969ac6a44ba234
Cr-Commit-Position: refs/heads/master@{#400464}

Powered by Google App Engine
This is Rietveld 408576698