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

Issue 2643613002: Reduce the perf overhead of our dangling markup experiments. (Closed)

Created:
3 years, 11 months ago by Mike West
Modified:
3 years, 11 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, kinuko+watch, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce the perf overhead of our dangling markup experiments. Given that Document::completeURL is a hotspot, this patch revamps the approach to capture removed whitespace up in //url (where we're already scanning through the string), and limits the scan for '<' to cases in which we've actually removed whitespace. BUG=680970, 682300 R=jochen@chromium.org Review-Url: https://codereview.chromium.org/2643613002 Cr-Commit-Position: refs/heads/master@{#444734} Committed: https://chromium.googlesource.com/chromium/src/+/41318f4888c1f60613c74cc86e539d173b16b0ad

Patch Set 1 #

Patch Set 2 : Trimmed. #

Patch Set 3 : Rebase. #

Total comments: 2

Patch Set 4 : unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -29 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 1 chunk +14 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/KURL.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/KURLTest.cpp View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M url/third_party/mozilla/url_parse.h View 1 chunk +3 lines, -0 lines 0 comments Download
M url/third_party/mozilla/url_parse.cc View 1 chunk +1 line, -2 lines 0 comments Download
M url/url_util.cc View 1 2 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (20 generated)
Mike West
WDYT about this, esprehn@? FYI: csharrison@, as you care about URL-parsing speed. :) I wonder ...
3 years, 11 months ago (2017-01-18 10:44:07 UTC) #8
Charlie Harrison
On 2017/01/18 10:44:07, Mike West (sloooooow) wrote: > WDYT about this, esprehn@? > > FYI: ...
3 years, 11 months ago (2017-01-18 13:15:18 UTC) #9
Mike West
On 2017/01/18 at 13:15:18, csharrison wrote: > On 2017/01/18 10:44:07, Mike West (sloooooow) wrote: > ...
3 years, 11 months ago (2017-01-18 14:29:39 UTC) #10
Mike West
Jochen, mind taking a look at this this morning? esprehn@ was right; this is a ...
3 years, 11 months ago (2017-01-19 07:31:23 UTC) #12
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/2643613002/diff/40001/third_party/WebKit/Source/platform/weborigin/KURL.h File third_party/WebKit/Source/platform/weborigin/KURL.h (right): https://codereview.chromium.org/2643613002/diff/40001/third_party/WebKit/Source/platform/weborigin/KURL.h#newcode194 third_party/WebKit/Source/platform/weborigin/KURL.h:194: bool whitespaceRemoved() const { return m_parsed.whitespace_removed; } maybe ...
3 years, 11 months ago (2017-01-19 12:35:42 UTC) #20
Charlie Harrison
non-owner lgtm https://codereview.chromium.org/2643613002/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2643613002/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode4950 third_party/WebKit/Source/core/dom/Document.cpp:4950: if (completed.whitespaceRemoved()) { Optional: I think an ...
3 years, 11 months ago (2017-01-19 13:06:50 UTC) #21
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/2643613002/60001
3 years, 11 months ago (2017-01-19 13:14:00 UTC) #24
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 15:12:51 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/41318f4888c1f60613c74cc86e53...

Powered by Google App Engine
This is Rietveld 408576698