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

Issue 2361263003: Blink: Throttle progressively loaded images. (Closed)

Created:
4 years, 3 months ago by vmpstr
Modified:
4 years ago
Reviewers:
chrishtr, pdr., enne (OOO)
CC:
alex clarke (OOO till 29th), blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Blink: Throttle progressively loaded images. This patch ensures that when the ImageResource is being loaded, we don't flush every time we receive new data. Instead, we introduce a flush delay so that we wait a specified amount of time between flushes (1 sec by default). R=chrishtr@chromium.org, enne@chromium.org, pdr@chromium.org Committed: https://crrev.com/5715aa51ef8794ca6f671d55f5845281c44b148f Cr-Commit-Position: refs/heads/master@{#432331}

Patch Set 1 #

Patch Set 2 : wip: update #

Total comments: 6

Patch Set 3 : throttle-images: update #

Patch Set 4 : throttle-images: update #

Total comments: 2

Patch Set 5 : throttle-images: update #

Total comments: 8

Patch Set 6 : throttle-images: update #

Patch Set 7 : throttle-images: timer approach #

Patch Set 8 : throttle-images: update #

Patch Set 9 : throttle-images: update #

Patch Set 10 : throttle-images: layout test fixes #

Patch Set 11 : throttle-images: update #

Patch Set 12 : throttle-images: update #

Patch Set 13 : throttle-images: update #

Patch Set 14 : throttle-images: update #

Patch Set 15 : land: rebase #

Messages

Total messages: 87 (47 generated)
vmpstr
Hey, this is roughly what I'm proposing for throttling how often we process images that ...
4 years, 3 months ago (2016-09-23 00:16:32 UTC) #1
pdr.
Is the goal to throttle all image loads or just progressive jpegs? For example, should ...
4 years, 3 months ago (2016-09-23 01:24:30 UTC) #2
Sami
On 2016/09/23 01:24:30, pdr. wrote: > Is the goal to throttle all image loads or ...
4 years, 3 months ago (2016-09-23 11:49:36 UTC) #3
vmpstr
I poked around the blink code a bit more and here are my thoughts... We ...
4 years, 2 months ago (2016-09-26 23:19:03 UTC) #4
pdr.
On 2016/09/26 at 23:19:03, vmpstr wrote: > I poked around the blink code a bit ...
4 years, 2 months ago (2016-09-27 05:18:56 UTC) #5
vmpstr
On 2016/09/27 05:18:56, pdr. wrote: > On 2016/09/26 at 23:19:03, vmpstr wrote: > > I ...
4 years, 2 months ago (2016-09-28 23:29:42 UTC) #6
pdr.
On 2016/09/28 at 23:29:42, vmpstr wrote: > In absense of UMA for this (for reasons ...
4 years, 2 months ago (2016-09-29 02:44:22 UTC) #7
vmpstr
On 2016/09/29 02:44:22, pdr. wrote: > On 2016/09/28 at 23:29:42, vmpstr wrote: > > In ...
4 years, 2 months ago (2016-09-29 20:47:11 UTC) #8
enne (OOO)
https://codereview.chromium.org/2361263003/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2361263003/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode48 third_party/WebKit/Source/core/fetch/ImageResource.cpp:48: static double flushDelay = 1.; flushDelayInSeconds? Mumble mumble wtb ...
4 years, 2 months ago (2016-09-29 22:49:34 UTC) #9
vmpstr
I think this is ready for a formal review. PTAL. https://codereview.chromium.org/2361263003/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2361263003/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode48 ...
4 years, 2 months ago (2016-10-04 21:18:37 UTC) #11
enne (OOO)
lgtm
4 years, 2 months ago (2016-10-04 21:21:47 UTC) #12
vmpstr
@pdr, could you also take a look? Thanks.
4 years, 2 months ago (2016-10-05 00:17:40 UTC) #15
pdr.
Overall this looks good. Can you add a test in "LayoutTests/http/tests/images" similar to png-progressive-load.html but ...
4 years, 2 months ago (2016-10-05 02:07:31 UTC) #18
enne (OOO)
Layout test with a timeout sounds unfortunate. If you want to test correctness here, is ...
4 years, 2 months ago (2016-10-05 16:54:08 UTC) #19
vmpstr
On 2016/10/05 16:54:08, enne wrote: > Layout test with a timeout sounds unfortunate. If you ...
4 years, 2 months ago (2016-10-05 23:02:02 UTC) #20
pdr.
LGTM with a few minor comments https://codereview.chromium.org/2361263003/diff/80001/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp File third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp (right): https://codereview.chromium.org/2361263003/diff/80001/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp#newcode690 third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp:690: cachedImage->finish(); Why is ...
4 years, 2 months ago (2016-10-05 23:24:26 UTC) #23
vmpstr
https://codereview.chromium.org/2361263003/diff/80001/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp File third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp (right): https://codereview.chromium.org/2361263003/diff/80001/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp#newcode690 third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp:690: cachedImage->finish(); On 2016/10/05 23:24:25, pdr. wrote: > Why is ...
4 years, 2 months ago (2016-10-05 23:48:17 UTC) #24
pdr.
Thanks! LGTM still
4 years, 2 months ago (2016-10-06 00:41:32 UTC) #27
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/2361263003/100001
4 years, 2 months ago (2016-10-06 00:48:58 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/238635)
4 years, 2 months ago (2016-10-06 00:59:51 UTC) #33
Yoav Weiss
Sorry for not replying to this earlier... * Could you describe the motivation for this ...
4 years, 2 months ago (2016-10-10 12:10:47 UTC) #50
vmpstr
On 2016/10/10 12:10:47, Yoav Weiss wrote: > Sorry for not replying to this earlier... > ...
4 years, 2 months ago (2016-10-10 16:04:43 UTC) #51
enne (OOO)
vmpstr, your changes lgtm. It makes me sad to have a timer running, but I'm ...
4 years, 2 months ago (2016-10-11 17:07:00 UTC) #56
pdr.
Another look has been taken here, since word was received of a new timer. This ...
4 years, 2 months ago (2016-10-11 17:27:50 UTC) #57
vmpstr
Yoav, I'm going to wait for your approval as well, so please take a look.
4 years, 2 months ago (2016-10-12 00:02:46 UTC) #58
Yoav Weiss
On 2016/10/10 16:04:43, vmpstr wrote: > > The reasoning here is to prevent continuous decodes ...
4 years, 2 months ago (2016-10-12 06:59:06 UTC) #59
Pat Meenan
On 2016/10/12 06:59:06, Yoav Weiss wrote: > On 2016/10/10 16:04:43, vmpstr wrote: > > > ...
4 years, 2 months ago (2016-10-12 12:14:07 UTC) #60
vmpstr
I've updated the patch to update image immediately until Image::SizeAvailable is set. So, in effect, ...
4 years, 2 months ago (2016-10-13 21:21:44 UTC) #65
Pat Meenan
On 2016/10/13 21:21:44, vmpstr wrote: > I've updated the patch to update image immediately until ...
4 years, 2 months ago (2016-10-17 14:43:30 UTC) #72
enne (OOO)
> There is a lot of data showing that every millisecond of user-percieved performance matters ...
4 years, 2 months ago (2016-10-17 17:22:37 UTC) #73
vmpstr
On 2016/10/17 17:22:37, enne wrote: > > There is a lot of data showing that ...
4 years, 2 months ago (2016-10-19 20:34:47 UTC) #74
vmpstr
ping. Do you folks think this is good to land?
4 years, 1 month ago (2016-10-25 18:03:52 UTC) #75
vmpstr
On 2016/10/25 18:03:52, vmpstr wrote: > ping. Do you folks think this is good to ...
4 years, 1 month ago (2016-11-08 20:16:49 UTC) #76
vmpstr
On 2016/11/08 20:16:49, vmpstr wrote: > On 2016/10/25 18:03:52, vmpstr wrote: > > ping. Do ...
4 years, 1 month ago (2016-11-10 19:10:05 UTC) #77
chrishtr
lgtm
4 years, 1 month ago (2016-11-10 19:38:49 UTC) #78
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/2361263003/280001
4 years, 1 month ago (2016-11-15 23:32:26 UTC) #81
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 1 month ago (2016-11-16 01:18:48 UTC) #83
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/5715aa51ef8794ca6f671d55f5845281c44b148f Cr-Commit-Position: refs/heads/master@{#432331}
4 years, 1 month ago (2016-11-16 01:25:48 UTC) #85
Yoav Weiss
Too late but, I still think this is a bad idea. Can we at least ...
4 years ago (2016-12-14 10:18:21 UTC) #86
pdr.
4 years ago (2016-12-14 22:37:26 UTC) #87
Message was sent while issue was closed.
On 2016/12/14 at 10:18:21, yoav wrote:
> Too late but, I still think this is a bad idea. Can we at least file a bug
with the decoding team and add a TODO here indicating that this is a temporary
solution to a decoding issue, and once the decoding issue is resolved, we can
rip out this mechanism?

I think this solution is reasonable long-term so there's a mismatch in our views
here. I'd like to better understand your concerns. Would you be willing to file
a bug with a concrete example/usecase we can discuss?

Powered by Google App Engine
This is Rietveld 408576698