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

Issue 10828024: Let RedirectToFileResourceHandler resize its internal buffer. (Closed)

Created:
8 years, 5 months ago by Nick Bray (chromium)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Let RedirectToFileResourceHandler resize its internal buffer. This can decrease NaCl's total warm load time by ~15% for larger files. The algorithm for resizing the buffer matches the one used by AsyncResourceHandler. BUG= none TEST= none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148664

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -5 lines) Patch
M content/browser/renderer_host/redirect_to_file_resource_handler.h View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/redirect_to_file_resource_handler.cc View 4 chunks +12 lines, -5 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
Nick Bray (chromium)
darin: listing you are reviewer because you are OWNER and blamed for most of this ...
8 years, 5 months ago (2012-07-25 23:08:29 UTC) #1
darin (slow to review)
I wonder about how we might share this code (this algorithm) between AsyncResourceHandler and RedirectToFileResourceHandler. ...
8 years, 5 months ago (2012-07-25 23:20:37 UTC) #2
Nick Bray (chromium)
On 2012/07/25 23:20:37, darin wrote: > I wonder about how we might share this code ...
8 years, 5 months ago (2012-07-25 23:36:43 UTC) #3
darin (slow to review)
https://chromiumcodereview.appspot.com/10828024/diff/1/content/browser/renderer_host/redirect_to_file_resource_handler.cc File content/browser/renderer_host/redirect_to_file_resource_handler.cc (right): https://chromiumcodereview.appspot.com/10828024/diff/1/content/browser/renderer_host/redirect_to_file_resource_handler.cc#newcode115 content/browser/renderer_host/redirect_to_file_resource_handler.cc:115: if (buf_->capacity() == bytes_read) { I had just imagined ...
8 years, 5 months ago (2012-07-26 18:51:59 UTC) #4
darin (slow to review)
On Thu, Jul 26, 2012 at 11:51 AM, <darin@chromium.org> wrote: > > https://chromiumcodereview.**appspot.com/10828024/diff/1/** > content/browser/renderer_host/**redirect_to_file_resource_**handler.cc<https://chromiumcodereview.appspot.com/10828024/diff/1/content/browser/renderer_host/redirect_to_file_resource_handler.cc> ...
8 years, 5 months ago (2012-07-26 18:52:56 UTC) #5
darin (slow to review)
As discussed in person, LGTM for this CL. On Thu, Jul 26, 2012 at 11:52 ...
8 years, 5 months ago (2012-07-26 19:12:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncbray@chromium.org/10828024/1
8 years, 5 months ago (2012-07-26 20:47:47 UTC) #7
commit-bot: I haz the power
8 years, 5 months ago (2012-07-26 23:57:15 UTC) #8
Change committed as 148664

Powered by Google App Engine
This is Rietveld 408576698