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

Issue 1603503002: Use scoped_ptr for loaders map in ResourceDispatcherHostImpl (Closed)

Created:
4 years, 11 months ago by kinuko
Modified:
4 years, 11 months ago
Reviewers:
yhirano
CC:
chromium-reviews, loading-reviews_chromium.org, darin-cc_chromium.org, jam, jkarlin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use scoped_ptr for loaders map in ResourceDispatcherHostImpl Mostly for cleanup, but this seems to have minor perf-win (5%-ish) on a few frequently called per-request methods like ResourceDispatcherHostImpl::RemovePendingRequest. (With 1000+ data points on my relatively fast Mac, the method takes 72.77 us by average in the original code, while it takes 66.67 us by average with scoped_ptr version.) BUG=556939 Committed: https://crrev.com/591bbce72bf16e013ba7dea4005fc0d89d70b744 Cr-Commit-Position: refs/heads/master@{#370076}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : remove linked_ptr.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -73 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 16 chunks +60 lines, -67 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
kinuko
PTL
4 years, 11 months ago (2016-01-18 14:06:53 UTC) #4
kinuko
yhirano@: maybe you could review this? (should be mostly mechanical)
4 years, 11 months ago (2016-01-19 02:51:41 UTC) #7
yhirano
lgtm https://codereview.chromium.org/1603503002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/1603503002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.h#newcode24 content/browser/loader/resource_dispatcher_host_impl.h:24: #include "base/memory/linked_ptr.h" Can this be removed?
4 years, 11 months ago (2016-01-19 03:14:32 UTC) #8
kinuko
Thanks! https://codereview.chromium.org/1603503002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/1603503002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.h#newcode24 content/browser/loader/resource_dispatcher_host_impl.h:24: #include "base/memory/linked_ptr.h" On 2016/01/19 03:14:32, yhirano wrote: > ...
4 years, 11 months ago (2016-01-19 05:18:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1603503002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1603503002/40001
4 years, 11 months ago (2016-01-19 05:18:38 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-19 06:30:17 UTC) #14
commit-bot: I haz the power
4 years, 11 months ago (2016-01-19 06:31:05 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/591bbce72bf16e013ba7dea4005fc0d89d70b744
Cr-Commit-Position: refs/heads/master@{#370076}

Powered by Google App Engine
This is Rietveld 408576698