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

Issue 10911297: Modify AsyncResourceHandler to use a single shared memory buffer (in ring (Closed)

Created:
8 years, 3 months ago by darin (slow to review)
Modified:
7 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, scherkus (not reviewing), Ilya Sherman, vadimb, jar (doing other things)
Visibility:
Public.

Description

Modify AsyncResourceHandler to use a single shared memory buffer (in ring buffer fashion) for transmitting resource response data to the renderer. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=157310

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 5

Patch Set 10 : #

Total comments: 9

Patch Set 11 : #

Total comments: 3

Patch Set 12 : #

Patch Set 13 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+649 lines, -188 lines) Patch
M content/browser/renderer_host/async_resource_handler.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -15 lines 0 comments Download
M content/browser/renderer_host/async_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +80 lines, -119 lines 1 comment Download
A content/browser/renderer_host/resource_buffer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +128 lines, -0 lines 0 comments Download
A content/browser/renderer_host/resource_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +181 lines, -0 lines 0 comments Download
A content/browser/renderer_host/resource_buffer_unittest.cc View 1 2 3 4 5 1 chunk +137 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +32 lines, -20 lines 0 comments Download
M content/common/resource_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -2 lines 0 comments Download
M content/common/resource_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +40 lines, -19 lines 0 comments Download
M content/common/resource_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -7 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +18 lines, -4 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/render_view_fake_resources_test.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
darin (slow to review)
I ran page cycler locally on a couple different machines in an attempt to tune ...
8 years, 3 months ago (2012-09-14 05:58:12 UTC) #1
James Simonsen
lgtm We should keep an eye on the buffer stats, particularly on Android. To measure ...
8 years, 3 months ago (2012-09-15 02:19:06 UTC) #2
darin (slow to review)
On 2012/09/15 02:19:06, James Simonsen wrote: > lgtm > > We should keep an eye ...
8 years, 3 months ago (2012-09-17 15:52:10 UTC) #3
brettw
http://codereview.chromium.org/10911297/diff/5019/content/browser/renderer_host/resource_buffer.cc File content/browser/renderer_host/resource_buffer.cc (right): http://codereview.chromium.org/10911297/diff/5019/content/browser/renderer_host/resource_buffer.cc#newcode7 content/browser/renderer_host/resource_buffer.cc:7: #include <math.h> Blank line after this. http://codereview.chromium.org/10911297/diff/5019/content/browser/renderer_host/resource_buffer.cc#newcode18 content/browser/renderer_host/resource_buffer.cc:18: // ...
8 years, 3 months ago (2012-09-17 23:53:10 UTC) #4
brettw
LGTM with fix http://codereview.chromium.org/10911297/diff/15001/content/browser/renderer_host/async_resource_handler.cc File content/browser/renderer_host/async_resource_handler.cc (right): http://codereview.chromium.org/10911297/diff/15001/content/browser/renderer_host/async_resource_handler.cc#newcode50 content/browser/renderer_host/async_resource_handler.cc:50: void InitializeResourceBufferConstants() { This seems to ...
8 years, 3 months ago (2012-09-18 04:44:54 UTC) #5
darin (slow to review)
http://codereview.chromium.org/10911297/diff/5019/content/browser/renderer_host/resource_buffer.cc File content/browser/renderer_host/resource_buffer.cc (right): http://codereview.chromium.org/10911297/diff/5019/content/browser/renderer_host/resource_buffer.cc#newcode7 content/browser/renderer_host/resource_buffer.cc:7: #include <math.h> On 2012/09/17 23:53:10, brettw wrote: > Blank ...
8 years, 3 months ago (2012-09-18 05:00:50 UTC) #6
jar (doing other things)
https://codereview.chromium.org/10911297/diff/28001/content/browser/renderer_host/async_resource_handler.cc File content/browser/renderer_host/async_resource_handler.cc (right): https://codereview.chromium.org/10911297/diff/28001/content/browser/renderer_host/async_resource_handler.cc#newcode235 content/browser/renderer_host/async_resource_handler.cc:235: bytes_read, 0, kMaxAllocationSize, 100); FYI: It is to late ...
7 years, 9 months ago (2013-03-27 16:55:22 UTC) #7
darin (slow to review)
Ah, sorry about that. I had no idea. Do you recommend changing the name at ...
7 years, 9 months ago (2013-03-27 17:42:01 UTC) #8
jar (doing other things)
7 years, 9 months ago (2013-03-28 16:27:57 UTC) #9
Yeah... it would be better to have a new name, so that when you look at
"Everything" you don't get combinations that include users that haven't
upgraded recently (and there are always a lot of them).

Jim


On Wed, Mar 27, 2013 at 10:41 AM, Darin Fisher <darin@chromium.org> wrote:

> Ah, sorry about that.  I had no idea.  Do you recommend changing the name
> at this point?
>
>
> On Wed, Mar 27, 2013 at 9:55 AM, <jar@chromium.org> wrote:
>
>>
>> https://codereview.chromium.**org/10911297/diff/28001/**
>>
content/browser/renderer_host/**async_resource_handler.cc<https://codereview.chromium.org/10911297/diff/28001/content/browser/renderer_host/async_resource_handler.cc>
>> File content/browser/renderer_host/**async_resource_handler.cc (right):
>>
>> https://codereview.chromium.**org/10911297/diff/28001/**
>>
content/browser/renderer_host/**async_resource_handler.cc#**newcode235<https://codereview.chromium.org/10911297/diff/28001/content/browser/renderer_host/async_resource_handler.cc#newcode235>
>> content/browser/renderer_host/**async_resource_handler.cc:235:
>> bytes_read,
>> 0, kMaxAllocationSize, 100);
>> FYI: It is to late now.... but best practice when changing the specs on
>> a histogram is to obsolete the old name, and change the name on the
>> histogram (often just a trailing digit or such works well).
>>
>> This change reached users in versions 23.0.1271.0 and later, conflating
>> the two variations of histograms.
>>
>> This one caught my eye when folks noticed some excessive bucket counts
>> in this histogram(this change was only a small part of a bigger problem
>> that I'm still looking into).
>>
>> The other histogram change (line 220) in this file should also be
>> renamed.
>>
>>
https://codereview.chromium.**org/10911297/<https://codereview.chromium.org/1...
>>
>
>

Powered by Google App Engine
This is Rietveld 408576698