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

Issue 3192013: Reduce browser work for multiple fetch plugins list requests... (Closed)

Created:
10 years, 4 months ago by ziadh
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews, ben+cc_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Reduce browser work for consecutive fetch plugins list requests I introduced a 3-second threshold value between consecutive fetch-plugin requests that induce a disk read (on the file thread) by forcing a refresh. Now, if multiple requests are made within the threshold values, no disk read will be performed. Average request times have been reduced from 11ms/request down to 1ms/request. BUG=44813 r=brettw Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57275

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 2

Patch Set 8 : '' #

Total comments: 2

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M chrome/browser/renderer_host/resource_message_filter.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ziadh
10 years, 4 months ago (2010-08-24 17:55:12 UTC) #1
brettw
http://codereview.chromium.org/3192013/diff/22001/7003 File chrome/browser/renderer_host/resource_message_filter.h (right): http://codereview.chromium.org/3192013/diff/22001/7003#newcode165 chrome/browser/renderer_host/resource_message_filter.h:165: base::TimeTicks last_refresh_time_; // Initialized to 0. This should go ...
10 years, 4 months ago (2010-08-24 20:18:39 UTC) #2
ziadh
http://codereview.chromium.org/3192013/diff/22001/7003 File chrome/browser/renderer_host/resource_message_filter.h (right): http://codereview.chromium.org/3192013/diff/22001/7003#newcode165 chrome/browser/renderer_host/resource_message_filter.h:165: base::TimeTicks last_refresh_time_; // Initialized to 0. On 2010/08/24 20:18:39, ...
10 years, 4 months ago (2010-08-24 20:58:37 UTC) #3
brettw
LGTM with expanded comment. http://codereview.chromium.org/3192013/diff/27001/28001 File chrome/browser/renderer_host/resource_message_filter.cc (right): http://codereview.chromium.org/3192013/diff/27001/28001#newcode702 chrome/browser/renderer_host/resource_message_filter.cc:702: // this check is performed ...
10 years, 4 months ago (2010-08-24 21:41:56 UTC) #4
ziadh
10 years, 4 months ago (2010-08-24 23:18:32 UTC) #5
http://codereview.chromium.org/3192013/diff/27001/28001
File chrome/browser/renderer_host/resource_message_filter.cc (right):

http://codereview.chromium.org/3192013/diff/27001/28001#newcode702
chrome/browser/renderer_host/resource_message_filter.cc:702: // this check is
performed before off-loading to the file thread.
On 2010/08/24 21:41:56, brettw wrote:
> Can you provide just a little more background here. I think it could use a
> sentence about how pages request that the plugin list be refreshed (possibly
> excessively often), plus a mention about how there could be multiple pages
doing
> this.

Done.

Powered by Google App Engine
This is Rietveld 408576698