Chromium Code Reviews
DescriptionAvoid parsing the webstore base url so much.
This is a followup to [1] which modified the extension url API to vend
GURLs rather than std::string for webstore update urls.
This patch does the same for the webstore base url
(the webstore "launch" url). We only parse this url in
ChromeResourceDispatcherHostDelegate::OnResponseStarted so there is less
of a performance win than [1], but still we should avoid doing needless
work.
Parsing this URL takes ~12% of the CPU time of
ResourceLoader::CompleteResponseStarted.
[1] https://codereview.chromium.org/2493053002/
BUG=664174
Committed: https://crrev.com/5d1f214db0f7996f3c17cd87093d439ce4c7f8f1
Cr-Commit-Position: refs/heads/master@{#433963}
Patch Set 1 #Patch Set 2 : remove weird stripping behavior + test #Patch Set 3 : remove dcheck #Patch Set 4 : don't assume cmd line urls canonical #
Total comments: 4
Patch Set 5 : rdevlin review #
Total comments: 2
Patch Set 6 : back to using string concat #Patch Set 7 : remove slash #
Total comments: 1
Patch Set 8 : fix chromeos #Messages
Total messages: 67 (45 generated)
|