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 2540893004: [url] Avoid scanning for whitespace twice during ResolveRelative (Closed)

Created:
4 years ago by Charlie Harrison
Modified:
4 years ago
Reviewers:
Mike West
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[url] Avoid scanning for whitespace twice during ResolveRelative For calls to url::ResolveRelative, if the input is not in fact relative, we call RemoveURLWhitespace twice on the same buffer. This is not necessary. On a test of loading 100 identical ~1mb data URL images, this patch speeds up the renderer by ~8% on Linux. BUG=657978 Committed: https://crrev.com/c64537201a63fc8436fcedd8edab32be3669405b Cr-Commit-Position: refs/heads/master@{#435604}

Patch Set 1 #

Patch Set 2 : minor tweaks + one sanity test #

Total comments: 2

Patch Set 3 : DONT -> DO_NOT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -17 lines) Patch
M url/gurl_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M url/url_util.cc View 1 2 7 chunks +26 lines, -17 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
Charlie Harrison
Hi Mike, would you be willing to review this? I think Brett is not reviewing ...
4 years ago (2016-11-30 23:07:34 UTC) #5
Charlie Harrison
Oh and just for reference, this code path is exercised heavily in Blink to initialize ...
4 years ago (2016-11-30 23:09:15 UTC) #6
Mike West
LGTM % tiny nit. https://codereview.chromium.org/2540893004/diff/20001/url/url_util.cc File url/url_util.cc (right): https://codereview.chromium.org/2540893004/diff/20001/url/url_util.cc#newcode26 url/url_util.cc:26: DONT_REMOVE_WHITESPACE, Nit: I'd prefer `DO_NOT` ...
4 years ago (2016-12-01 09:39:36 UTC) #9
Charlie Harrison
Many thanks!
4 years ago (2016-12-01 13:27:03 UTC) #12
Charlie Harrison
https://codereview.chromium.org/2540893004/diff/20001/url/url_util.cc File url/url_util.cc (right): https://codereview.chromium.org/2540893004/diff/20001/url/url_util.cc#newcode26 url/url_util.cc:26: DONT_REMOVE_WHITESPACE, On 2016/12/01 09:39:36, Mike West (slow) wrote: > ...
4 years ago (2016-12-01 13:27:37 UTC) #13
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/2540893004/40001
4 years ago (2016-12-01 13:27:56 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-01 14:15:44 UTC) #20
commit-bot: I haz the power
4 years ago (2016-12-01 14:18:33 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c64537201a63fc8436fcedd8edab32be3669405b
Cr-Commit-Position: refs/heads/master@{#435604}

Powered by Google App Engine
This is Rietveld 408576698