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

Issue 723423002: Clear ResourceFetcher::m_validatedURLs if too many entries are added (Closed)

Created:
6 years, 1 month ago by hiroshige
Modified:
6 years, 1 month ago
CC:
blink-reviews, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Clear ResourceFetcher::m_validatedURLs if too many entries are added This is to avoid memory bloat due to m_validatedURLs. BUG=52411 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185369

Patch Set 1 #

Total comments: 4

Patch Set 2 : Limit by ring buffer #

Total comments: 1

Patch Set 3 : define kMaxValidatedURLsSize #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M Source/core/fetch/ResourceFetcher.cpp View 1 2 2 chunks +7 lines, -0 lines 1 comment Download

Messages

Total messages: 11 (3 generated)
kouhei (in TOK)
https://codereview.chromium.org/723423002/diff/1/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/723423002/diff/1/Source/core/fetch/ResourceFetcher.cpp#newcode698 Source/core/fetch/ResourceFetcher.cpp:698: m_validatedURLs.clear(); Can we have a ring buffer instead?
6 years, 1 month ago (2014-11-14 08:37:51 UTC) #2
hiroshige
https://codereview.chromium.org/723423002/diff/1/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/723423002/diff/1/Source/core/fetch/ResourceFetcher.cpp#newcode698 Source/core/fetch/ResourceFetcher.cpp:698: m_validatedURLs.clear(); On 2014/11/14 08:37:51, kouhei wrote: > Can we ...
6 years, 1 month ago (2014-11-14 09:02:05 UTC) #3
kouhei (in TOK)
https://codereview.chromium.org/723423002/diff/1/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/723423002/diff/1/Source/core/fetch/ResourceFetcher.cpp#newcode698 Source/core/fetch/ResourceFetcher.cpp:698: m_validatedURLs.clear(); On 2014/11/14 09:02:05, hiroshige wrote: > On 2014/11/14 ...
6 years, 1 month ago (2014-11-14 09:15:58 UTC) #4
hiroshige
Reverted change in Patch Set 2 and defined kMaxValidatedURLsSize based on Patch Set 1. https://codereview.chromium.org/723423002/diff/1/Source/core/fetch/ResourceFetcher.cpp ...
6 years, 1 month ago (2014-11-14 09:29:22 UTC) #5
kouhei (in TOK)
lgtm
6 years, 1 month ago (2014-11-14 09:43:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/723423002/40001
6 years, 1 month ago (2014-11-14 11:26:52 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 185369
6 years, 1 month ago (2014-11-14 12:11:16 UTC) #9
PhistucK
6 years, 1 month ago (2014-11-14 12:30:37 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/723423002/diff/40001/Source/core/fetch/Resour...
File Source/core/fetch/ResourceFetcher.cpp (right):

https://codereview.chromium.org/723423002/diff/40001/Source/core/fetch/Resour...
Source/core/fetch/ResourceFetcher.cpp:682: static const int
kMaxValidatedURLsSize = 10000;
This seems like a lot to me (10,000 URLs, right?). Imagine the URL is 2,000
characters in length - almost 20MB. I am not sure this bloat (only for validated
URL caching) is worth the benefit. Will 1,000 (or even 5,000) be too little?
This is per renderer (I think?) - 1,000 - 5,000 look sufficiently much to me...

Powered by Google App Engine
This is Rietveld 408576698