|
|
Created:
3 years, 7 months ago by horo Modified:
3 years, 7 months ago CC:
chromium-reviews, 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. |
DescriptionStop using Resource::ResourceCallback and make Resource have a TaskHandle
Resource::ResourceCallback was made to be static local by crrev.com/16365011.
It was intended to uses a single timer for all Resources.
But I don't think this optimization has an impact in the real world web.
To make the code simple, I'd like to remove the ResourceCallback and make the
Resource have a TaskHandle.
This change will make it easy to support off-main-thread fetch.
BUG=443374
Review-Url: https://codereview.chromium.org/2876453002
Cr-Commit-Position: refs/heads/master@{#470897}
Committed: https://chromium.googlesource.com/chromium/src/+/1b18cecc5e51e5946b1c224bcbfd8fd71bd7c23d
Patch Set 1 #
Total comments: 2
Patch Set 2 : check IsActive() #
Total comments: 2
Patch Set 3 : s/async_callback_task_handle_/async_finish_pending_clients_task_/ #
Dependent Patchsets: Messages
Total messages: 49 (31 generated)
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #1 (id:1) has been deleted
Patchset #1 (id:20001) has been deleted
Description was changed from ========== Stop using Resource::ResourceCallback BUG= ========== to ========== Stop using Resource::ResourceCallback Resource::ResourceCallback was made to be static local by crrev.com/16365011. It was intended to uses a single timer for all Resources. But I don't think this optimization has an impact in the real world web. To make the code simple, I'd like to remove the ResourceCallback and make the Resource have a TaskHandle. This change will make it easy to support off-main-thread fetch. BUG=443374 ==========
Description was changed from ========== Stop using Resource::ResourceCallback Resource::ResourceCallback was made to be static local by crrev.com/16365011. It was intended to uses a single timer for all Resources. But I don't think this optimization has an impact in the real world web. To make the code simple, I'd like to remove the ResourceCallback and make the Resource have a TaskHandle. This change will make it easy to support off-main-thread fetch. BUG=443374 ========== to ========== Stop using Resource::ResourceCallback and make Resource have a TaskHandle Resource::ResourceCallback was made to be static local by crrev.com/16365011. It was intended to uses a single timer for all Resources. But I don't think this optimization has an impact in the real world web. To make the code simple, I'd like to remove the ResourceCallback and make the Resource have a TaskHandle. This change will make it easy to support off-main-thread fetch. BUG=443374 ==========
horo@chromium.org changed reviewers: + yhirano@chromium.org
yhirano@ Please review this.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
https://codereview.chromium.org/2876453002/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/platform/loader/fetch/Resource.cpp (right): https://codereview.chromium.org/2876453002/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/platform/loader/fetch/Resource.cpp:695: if (clients_awaiting_callback_.IsEmpty()) The original code contains |task_runner_.IsActive()| in the condition. ... that said, it looks Cancel() does nothing when not active. Removing the check is no problem, but I think L778-L780 should be consistent on the point.
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2876453002/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/platform/loader/fetch/Resource.cpp (right): https://codereview.chromium.org/2876453002/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/platform/loader/fetch/Resource.cpp:695: if (clients_awaiting_callback_.IsEmpty()) On 2017/05/10 06:59:17, yhirano wrote: > The original code contains |task_runner_.IsActive()| in the condition. > > ... that said, it looks Cancel() does nothing when not active. Removing the > check is no problem, but I think L778-L780 should be consistent on the point. Done.
lgtm
kinuko@chromium.org changed reviewers: + kinuko@chromium.org
cool! (lgtm/2) https://codereview.chromium.org/2876453002/diff/60001/third_party/WebKit/Sour... File third_party/WebKit/Source/platform/loader/fetch/Resource.h (right): https://codereview.chromium.org/2876453002/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/platform/loader/fetch/Resource.h:483: TaskHandle async_callback_task_handle_; nit: async_finish_pending_clients_task_ or something like that?
The CQ bit was checked by horo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thank you. https://codereview.chromium.org/2876453002/diff/60001/third_party/WebKit/Sour... File third_party/WebKit/Source/platform/loader/fetch/Resource.h (right): https://codereview.chromium.org/2876453002/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/platform/loader/fetch/Resource.h:483: TaskHandle async_callback_task_handle_; On 2017/05/10 07:18:09, kinuko wrote: > nit: async_finish_pending_clients_task_ or something like that? Done.
horo@chromium.org changed reviewers: + japhet@chromium.org
japhet@ Could you please review this?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
lgtm
The CQ bit was checked by horo@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from kinuko@chromium.org, yhirano@chromium.org Link to the patchset: https://codereview.chromium.org/2876453002/#ps80001 (title: "s/async_callback_task_handle_/async_finish_pending_clients_task_/")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by horo@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by horo@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by horo@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by horo@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1494489208309820, "parent_rev": "2a628672163491c90fde73c7c467fb059455dc28", "commit_rev": "1b18cecc5e51e5946b1c224bcbfd8fd71bd7c23d"}
Message was sent while issue was closed.
Description was changed from ========== Stop using Resource::ResourceCallback and make Resource have a TaskHandle Resource::ResourceCallback was made to be static local by crrev.com/16365011. It was intended to uses a single timer for all Resources. But I don't think this optimization has an impact in the real world web. To make the code simple, I'd like to remove the ResourceCallback and make the Resource have a TaskHandle. This change will make it easy to support off-main-thread fetch. BUG=443374 ========== to ========== Stop using Resource::ResourceCallback and make Resource have a TaskHandle Resource::ResourceCallback was made to be static local by crrev.com/16365011. It was intended to uses a single timer for all Resources. But I don't think this optimization has an impact in the real world web. To make the code simple, I'd like to remove the ResourceCallback and make the Resource have a TaskHandle. This change will make it easy to support off-main-thread fetch. BUG=443374 Review-Url: https://codereview.chromium.org/2876453002 Cr-Commit-Position: refs/heads/master@{#470897} Committed: https://chromium.googlesource.com/chromium/src/+/1b18cecc5e51e5946b1c224bcbfd... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as https://chromium.googlesource.com/chromium/src/+/1b18cecc5e51e5946b1c224bcbfd... |