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

Issue 1914963002: Introduce v8-cache-strategies-for-cache-storage setting flags. (Closed)

Created:
4 years, 8 months ago by horo
Modified:
4 years, 7 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, eae+blinkwatch, falken, gavinp+loader_chromium.org, haraken, horo+watch_chromium.org, jam, Nate Chapin, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, loading-reviews+fetch_chromium.org, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nhiroki, rwlbuis, serviceworker-reviews, sof, tyoshino+watch_chromium.org, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce v8-cache-strategies-for-cache-storage setting flags. This cl depends on https://codereview.chromium.org/1915833002/ - When the flag is "none", we don't store the V8 code cache in CacheStorage. - When the flag is "normal", V8 code cache will be stored when the script is loaded twice in 72 hours. This behavior is same as V8 code cache in HTTPCache and implemented in V8ScriptRunner. - When the flag is "aggressive", V8 code cache will be stored when the script is loaded for the first time. We will monitor PageLoad.Clients.ServiceWorker.Timing2.NavigationToFirstContentfulPaint metrics (https://codereview.chromium.org/1871393002/) to decide which strategy is the best one. (If FirstMeaningfulPaint which is being developed by ksakamoto@ will be available, we will use it.) BUG=581613 Committed: https://crrev.com/dbcbef409e1add7b7887d88b97ceadcf3d32fb20 Cr-Commit-Position: refs/heads/master@{#392629}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : incorporated falken's comment #

Patch Set 3 : incorporated vogelheim's comment #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -13 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 5 chunks +22 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 2 chunks +23 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_android.json View 1 1 chunk +11 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_chromeos.json View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_linux.json View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_mac.json View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_win.json View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (16 generated)
horo
falken@ Could you please review this?
4 years, 8 months ago (2016-04-25 09:29:07 UTC) #6
falken
Sorry for the delay, this completely slipped my mind. The overall code approach looks good, ...
4 years, 7 months ago (2016-04-26 15:29:52 UTC) #7
horo
On 2016/04/26 15:29:52, falken wrote: > Sorry for the delay, this completely slipped my mind. ...
4 years, 7 months ago (2016-04-27 06:25:34 UTC) #8
falken
I think this lgtm. Thanks for adding the info about the metric in the doc. ...
4 years, 7 months ago (2016-04-27 08:07:38 UTC) #9
horo
Updated the CL description. Thank you. https://codereview.chromium.org/1914963002/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/1914963002/diff/20001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode328 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:328: } On 2016/04/27 ...
4 years, 7 months ago (2016-04-27 08:15:36 UTC) #11
vogelheim
drive-by comment: Your implementation of v8-cache-strategies-for-cache-storage follows that of v8-cache-options, which employs an awful lot ...
4 years, 7 months ago (2016-04-27 18:22:22 UTC) #13
horo
On 2016/04/27 18:22:22, vogelheim wrote: > drive-by comment: > > Your implementation of v8-cache-strategies-for-cache-storage follows ...
4 years, 7 months ago (2016-04-30 05:36:58 UTC) #15
horo
jochen@ Could you please review content/* and third_party/WebKit/*?
4 years, 7 months ago (2016-05-09 04:13:47 UTC) #18
jochen (gone - plz use gerrit)
lgtm
4 years, 7 months ago (2016-05-09 15:26:28 UTC) #19
horo
asvitkine@ Could you please review testing/variations/* and tools/metrics/histograms/histograms.xml?
4 years, 7 months ago (2016-05-09 22:25:34 UTC) #21
Alexei Svitkine (slow)
lgtm please modify CL description to not use the term Finch since that's an internal ...
4 years, 7 months ago (2016-05-10 15:24:44 UTC) #22
horo
Thank you. > please modify CL description to not use the term Finch since that's ...
4 years, 7 months ago (2016-05-10 15:28:36 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1914963002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914963002/100001
4 years, 7 months ago (2016-05-10 15:29:07 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 7 months ago (2016-05-10 17:03:05 UTC) #29
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 17:05:29 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/dbcbef409e1add7b7887d88b97ceadcf3d32fb20
Cr-Commit-Position: refs/heads/master@{#392629}

Powered by Google App Engine
This is Rietveld 408576698