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

Issue 1401813002: Cache User Agent string in BlinkPlatformImpl (Closed)

Created:
5 years, 2 months ago by tzik
Modified:
5 years, 1 month ago
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, Inactive, chromium-reviews, devtools-reviews_chromium.org, gavinp+loader_chromium.org, kinuko+watch, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, tyoshino+watch_chromium.org, vivekg_samsung, vivekg, yurys+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cache User Agent string in BlinkPlatformImpl Issuing resource requests take around 10% of time-to-first-paint on typical discarded tab restoration. And UA string calculation takes 30% of time of above. This CL add a cache of UA string in Platform to cut 3% of the time. BUG=540988 Committed: https://crrev.com/d15db75602e43a8f6bfd480a9442745544cac18f Cr-Commit-Position: refs/heads/master@{#356813}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : moved to FrameLoaderClientImpl #

Total comments: 4

Patch Set 5 : Moved to FrameLoader #

Patch Set 6 : +comment #

Patch Set 7 : Moved to BlinkPlatformImpl #

Patch Set 8 : +comment. +DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M content/child/blink_platform_impl.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M content/public/common/content_client.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 65 (25 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401813002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401813002/1
5 years, 2 months ago (2015-10-13 02:19:54 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/74218)
5 years, 2 months ago (2015-10-13 03:01:52 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401813002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401813002/20001
5 years, 2 months ago (2015-10-13 07:54:58 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/74303)
5 years, 2 months ago (2015-10-13 08:17:09 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401813002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401813002/20001
5 years, 2 months ago (2015-10-13 10:50:14 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/125655)
5 years, 2 months ago (2015-10-13 11:09:41 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401813002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401813002/40001
5 years, 2 months ago (2015-10-14 10:34:24 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-14 11:35:05 UTC) #17
tzik
PTAL
5 years, 2 months ago (2015-10-14 11:36:48 UTC) #19
kouhei (in TOK)
Great work! Can we do this at blink level? I was wondering if creating a ...
5 years, 2 months ago (2015-10-14 11:44:29 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401813002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401813002/60001
5 years, 2 months ago (2015-10-15 13:58:46 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-15 15:12:34 UTC) #24
tzik
On 2015/10/14 11:44:29, kouhei wrote: > Great work! > Can we do this at blink ...
5 years, 2 months ago (2015-10-16 02:45:37 UTC) #25
tyoshino (SeeGerritForStatus)
Can we add a DCHECK to SetContentClient()? Description: issueing -> issuing
5 years, 2 months ago (2015-10-16 06:29:45 UTC) #26
kinuko
lgtm, assuming the memory usage for caching this is negligible https://codereview.chromium.org/1401813002/diff/60001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/1401813002/diff/60001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode690 ...
5 years, 2 months ago (2015-10-16 11:12:22 UTC) #27
kouhei (in TOK)
lgtm % kinuko-san's comments
5 years, 2 months ago (2015-10-16 11:58:38 UTC) #28
Nate Chapin
On 2015/10/16 11:58:38, kouhei wrote: > lgtm % kinuko-san's comments (drive-by) Adding new logic to ...
5 years, 2 months ago (2015-10-16 18:51:15 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401813002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401813002/100001
5 years, 2 months ago (2015-10-19 07:39:00 UTC) #31
tzik
On 2015/10/16 18:51:15, Nate Chapin wrote: > On 2015/10/16 11:58:38, kouhei wrote: > > lgtm ...
5 years, 2 months ago (2015-10-19 08:15:17 UTC) #32
tzik
Updated. Kinuko-san, Kouhei-san. Could you also take another look to this? https://codereview.chromium.org/1401813002/diff/60001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): ...
5 years, 2 months ago (2015-10-19 08:16:48 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/128121)
5 years, 2 months ago (2015-10-19 09:24:54 UTC) #36
kinuko
looks like It breaks tests...
5 years, 2 months ago (2015-10-19 09:35:57 UTC) #37
esprehn
This doesn't seem like the right layer for the cache, why isn't the cache out ...
5 years, 2 months ago (2015-10-20 02:46:52 UTC) #39
kouhei (in TOK)
On 2015/10/20 02:46:52, esprehn wrote: > This doesn't seem like the right layer for the ...
5 years, 2 months ago (2015-10-20 03:35:25 UTC) #40
esprehn
On 2015/10/20 at 03:35:25, kouhei wrote: > On 2015/10/20 02:46:52, esprehn wrote: > > This ...
5 years, 2 months ago (2015-10-20 03:55:24 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401813002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401813002/120001
5 years, 1 month ago (2015-10-28 07:19:44 UTC) #43
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/126804)
5 years, 1 month ago (2015-10-28 08:06:00 UTC) #45
tzik
On 2015/10/20 03:55:24, esprehn wrote: > On 2015/10/20 at 03:35:25, kouhei wrote: > > On ...
5 years, 1 month ago (2015-10-28 14:37:07 UTC) #46
kouhei (in TOK)
still lgtm
5 years, 1 month ago (2015-10-28 14:45:28 UTC) #47
kinuko
lgtm.
5 years, 1 month ago (2015-10-29 01:11:39 UTC) #48
tyoshino (SeeGerritForStatus)
Maybe you've overlooked my comments as they're not inlined ones. On 2015/10/16 06:29:45, tyoshino wrote: ...
5 years, 1 month ago (2015-10-29 04:13:22 UTC) #49
esprehn
lgtm
5 years, 1 month ago (2015-10-29 04:14:32 UTC) #50
esprehn
On 2015/10/29 at 04:14:32, esprehn wrote: > lgtm Btw you need to update your patch ...
5 years, 1 month ago (2015-10-29 04:18:06 UTC) #51
tzik
On 2015/10/29 04:13:22, tyoshino wrote: > Maybe you've overlooked my comments as they're not inlined ...
5 years, 1 month ago (2015-10-29 08:08:22 UTC) #54
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401813002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401813002/140001
5 years, 1 month ago (2015-10-29 08:08:49 UTC) #56
tyoshino (SeeGerritForStatus)
lgtm
5 years, 1 month ago (2015-10-29 08:32:17 UTC) #58
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-10-29 09:24:35 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401813002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401813002/140001
5 years, 1 month ago (2015-10-29 11:33:01 UTC) #63
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 1 month ago (2015-10-29 11:36:44 UTC) #64
commit-bot: I haz the power
5 years, 1 month ago (2015-10-29 11:37:43 UTC) #65
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d15db75602e43a8f6bfd480a9442745544cac18f
Cr-Commit-Position: refs/heads/master@{#356813}

Powered by Google App Engine
This is Rietveld 408576698