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

Issue 2871233002: Separate preload matching from MemoryCache (Closed)

Created:
3 years, 7 months ago by yhirano
Modified:
3 years, 7 months ago
CC:
chromium-reviews, gavinp+prerender_chromium.org, tyoshino+watch_chromium.org, loading-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, kinuko+watch, Nate Chapin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate preload matching from MemoryCache This is a reland of https://chromium.googlesource.com/chromium/src/+/bb924e1897f5b4c67325dbfbdf2441e7f0686d53 which is reverted due to performance regressions. This change decouples preload matching from MemoryCache lookup. With this change, preload matching is done for ResourceFetcher::preloads_. This is the first step and part of the second step in the design document[1]. 1: https://docs.google.com/document/d/1oq8ixPnaDxuAlKUTRQ3WoYHlJenVkzNU9xnkuZX_dWM/edit# BUG=652228 Review-Url: https://codereview.chromium.org/2871233002 Cr-Commit-Position: refs/heads/master@{#472421} Committed: https://chromium.googlesource.com/chromium/src/+/37589655a8b0ab6436390749e63cfb18a770f314

Patch Set 1 #

Patch Set 2 : keep matched preloads #

Patch Set 3 : rebase #

Total comments: 9

Patch Set 4 : fix #

Patch Set 5 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -160 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-and-subresource-test-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/preload/multiple-meta-csp.html View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/resources/srcset-helper.js View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/permissionclient/image-permissions-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/loader/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h View 1 2 3 4 5 chunks +15 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp View 1 2 3 4 12 chunks +174 lines, -88 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp View 6 chunks +124 lines, -58 lines 0 comments Download

Messages

Total messages: 36 (24 generated)
yhirano
Hi Nate, can you take a look again? PS1 is the rebased original CL, and ...
3 years, 7 months ago (2017-05-10 14:55:08 UTC) #7
yhirano
On 2017/05/10 14:55:08, yhirano wrote: > Hi Nate, can you take a look again? > ...
3 years, 7 months ago (2017-05-12 15:09:02 UTC) #11
Yoav Weiss
https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp#newcode1027 third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp:1027: if (!IsReusableForPreloading(fetch_params, existing_resource, is_static_data)) Can we maybe change the ...
3 years, 7 months ago (2017-05-12 16:33:57 UTC) #13
Yoav Weiss
https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp#newcode804 third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp:804: GetMemoryCache()->Add(resource); Won't this add preloaded resources also to the ...
3 years, 7 months ago (2017-05-12 16:53:46 UTC) #14
kinuko
https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h File third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h (right): https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h#newcode15 third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h:15: // PreloadKey is a key type of the prealods ...
3 years, 7 months ago (2017-05-15 02:09:04 UTC) #16
yhirano
https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h File third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h (right): https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h#newcode15 third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h:15: // PreloadKey is a key type of the prealods ...
3 years, 7 months ago (2017-05-16 11:19:24 UTC) #21
kinuko
https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp#newcode1027 third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp:1027: if (!IsReusableForPreloading(fetch_params, existing_resource, is_static_data)) IsReusableAlsoForPreloading ...? (I'm not good ...
3 years, 7 months ago (2017-05-16 22:58:53 UTC) #24
yhirano
https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp#newcode1027 third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp:1027: if (!IsReusableForPreloading(fetch_params, existing_resource, is_static_data)) On 2017/05/16 22:58:53, kinuko wrote: ...
3 years, 7 months ago (2017-05-17 04:24:44 UTC) #26
Yoav Weiss
On 2017/05/16 11:19:24, yhirano wrote: > https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h > File third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h (right): > > https://codereview.chromium.org/2871233002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/PreloadKey.h#newcode15 > ...
3 years, 7 months ago (2017-05-17 05:11:04 UTC) #28
kinuko
lgtm
3 years, 7 months ago (2017-05-17 06:20:55 UTC) #29
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/2871233002/80001
3 years, 7 months ago (2017-05-17 06:30:01 UTC) #33
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 11:12:44 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/37589655a8b0ab6436390749e63c...

Powered by Google App Engine
This is Rietveld 408576698