Chromium Code Reviews
Description[extensions] Stop parsing webstore urls so much
The following hooks parse the webstore url per request, sometimes twice.
- OnHeadersReceived
- OnResponseStarted
- OnBeforeRequest
- OnBeforeSendHeaders
- OnSendHeaders
- OnCompleted
This accounts for ~3% of task CPU time on the IO thread from loading
http://cr.kungfoo.net/loading/1000spacers/ on Linux.
This patch just caches the url at the ExtensionsClient layer, so we never
have to do this more than once.
BUG=664174
Committed: https://crrev.com/4ff7b40b01046d703b33c4c96a491fdb923d20cd
Cr-Commit-Position: refs/heads/master@{#431771}
Patch Set 1 #Patch Set 2 : still need to check cmd line every time :( #
Total comments: 3
Patch Set 3 : rdevlin review #Messages
Total messages: 24 (18 generated)
|