Closed
Bug 689411
Opened 14 years ago
Closed 14 years ago
When re-decoding images on a tab, we should decode images currently in the viewport first
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 715308
People
(Reporter: ehsan.akhgari, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: regression)
STR: 1. Go to the URL.
2. Open a new tab.
3. Wait for 10 or so seconds and then close the tab.
Watch the images on the page being redrawn one by one. This looks *very* bad.
Comment 1•14 years ago
|
||
This looks no worse than any of the other image-heavy sites I've looked at, like the Atlantic's In Focus blog.
We suck at re-decoding discarded images. Provably anything would get more images up faster than our current scheme, which is to decode all images in parallel.
Comment 2•14 years ago
|
||
It looks particularly bad because the slides are small. But they're actually large and sized down by the browser.
(In reply to Justin Lebar [:jlebar] from comment #2)
> It looks particularly bad because the slides are small. But they're
> actually large and sized down by the browser.
Yeah, that's a recipe for bad things.
Reporter | ||
Comment 4•14 years ago
|
||
I tested Chrome, Safari and Chrome, and they all do a better job than what we do here.
Comment 5•14 years ago
|
||
Ehsan, do you mind if I morph this bug into
When re-decoding images on a tab, we should decode images currently in the viewport first.
?
Updated•14 years ago
|
Summary: Image discarding shows up really badly on brendaneich.com → When re-decoding images on a tab, we should decode images currently in the viewport first
Updated•14 years ago
|
Blocks: image-suck
Comment 6•14 years ago
|
||
What I'd like to see happen is for all the caching stuff to just disappear and for it to decode each and every time an image enters the visible area. I wonder where the real bottlenecks are.
Reporter | ||
Comment 7•14 years ago
|
||
(In reply to Justin Lebar [:jlebar] from comment #5)
> Ehsan, do you mind if I morph this bug into
>
> When re-decoding images on a tab, we should decode images currently in the
> viewport first.
>
> ?
Please be my guest. :-)
Comment 8•14 years ago
|
||
Component currently reads "Graphics". Should it be "Imagelib"?
Comment 9•14 years ago
|
||
(In reply to Robert Claypool from comment #8)
> Component currently reads "Graphics". Should it be "Imagelib"?
Thanks.
Component: Graphics → ImageLib
QA Contact: thebes → imagelib
![]() |
||
Comment 10•14 years ago
|
||
Robert, doing what you propose leads to really crappy behavior when scrolling. Keep in mind that on modern desktop hardware decode times for a large jpeg are measured in hundreds of milliseconds to seconds. On mobile things are even worse.
Comment 11•14 years ago
|
||
How large is large?
![]() |
||
Comment 12•14 years ago
|
||
Typical photos from a modern digital camera will do it, last I checked.
Comment 13•14 years ago
|
||
What about some sort of intermediate compressed form the resolution of the displayed image so you can keep a whole page of them in memory?
![]() |
||
Comment 14•14 years ago
|
||
This bug is awfully similar to bug 542158. If anything, that bug is more general, because this one is about re-decoding images. Ehsan, are you happy to dup this to bug 542158?
Comment 15•14 years ago
|
||
Actually, this is an exact dupe of bug 715308.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 16•14 years ago
|
||
(In reply to Justin Lebar [:jlebar] from comment #15)
> Actually, this is an exact dupe of bug 715308.
That is true, sir!
Comment 17•14 years ago
|
||
If this is a dupe of bug 715308, shouldn't
"Depends on: 689623
Blocks: image-suck"
be carried over to bug 715308, then?
Comment 18•14 years ago
|
||
Bug 715308 should block image-suck, but the dependency here is false. That's the discovery which led to the patch in bug 715308.
You need to log in
before you can comment on or make changes to this bug.
Description
•