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

Issue 2503713004: Avoid string copies when determining approximate memory usage in RDHI (Closed)

Created:
4 years, 1 month ago by Charlie Harrison
Modified:
4 years, 1 month ago
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid string copies when determining approximate memory usage in RDHI This patch just pulls the lengths out of the request headers and GURL rather than serializing/copying them and then querying the length. BUG=664174 Committed: https://crrev.com/26a0f5bf7030a09f679d41532318282b3e8ee47d Cr-Commit-Position: refs/heads/master@{#432495}

Patch Set 1 #

Patch Set 2 : includes #

Total comments: 2

Patch Set 3 : rdsmith review and fix unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -13 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 2 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
Charlie Harrison
rdsmith ptal!
4 years, 1 month ago (2016-11-15 20:25:00 UTC) #3
mmenke
On 2016/11/15 20:25:00, Charlie Harrison wrote: > rdsmith ptal! Random comment: If you're looking to ...
4 years, 1 month ago (2016-11-15 20:28:39 UTC) #5
mmenke
On 2016/11/15 20:28:39, mmenke wrote: > On 2016/11/15 20:25:00, Charlie Harrison wrote: > > rdsmith ...
4 years, 1 month ago (2016-11-15 20:29:00 UTC) #6
Charlie Harrison
Thx for the pointers. I noticed this in a profile but I'll keep an eye ...
4 years, 1 month ago (2016-11-15 20:36:01 UTC) #7
Randy Smith (Not in Mondays)
LGTM. https://codereview.chromium.org/2503713004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2503713004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2335 content/browser/loader/resource_dispatcher_host_impl.cc:2335: int header_length = 0; Suggestion: Make this declaration ...
4 years, 1 month ago (2016-11-16 13:07:04 UTC) #10
Charlie Harrison
thanks https://codereview.chromium.org/2503713004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2503713004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2335 content/browser/loader/resource_dispatcher_host_impl.cc:2335: int header_length = 0; On 2016/11/16 13:07:04, Randy ...
4 years, 1 month ago (2016-11-16 13:55:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2503713004/40001
4 years, 1 month ago (2016-11-16 13:56:31 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-16 15:40:39 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 15:45:31 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/26a0f5bf7030a09f679d41532318282b3e8ee47d
Cr-Commit-Position: refs/heads/master@{#432495}

Powered by Google App Engine
This is Rietveld 408576698