check if there are any "http-on-image-cache-response" observers in imgLoader::NotifyObserversForCachedImage before doing any work
Categories
(Core :: Graphics: ImageLib, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox99 | --- | fixed |
People
(Reporter: tnikkel, Assigned: sefeng)
References
Details
Attachments
(2 files)
(You need to provide a local file white.png for the testcase, I used a small image I had handy)
With the attached testcase I compared current behaviour vs commenting out the call to NotifyObserversForCachedImage.
Current behaviour was about 290ms, commenting out NotifyObserversForCachedImage was about 180ms.
So it seems worth it to optimize.
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
This is an optimization to avoid doing redundant things when there are no
registered observers.
Comment 3•3 years ago
•
|
||
Backed out for causing build bustages.
Backout link: https://hg.mozilla.org/integration/autoland/rev/de0915875736250d12daab0e17c5a243d49042e0
Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception&revision=480ba71887c820760fa42f50f6d66e71d3792125
Failure log:
-https://treeherder.mozilla.org/logviewer?job_id=368110187&repo=autoland&lineNumber=13386
-https://treeherder.mozilla.org/logviewer?job_id=368120411&repo=autoland&lineNumber=2714
Assignee | ||
Updated•3 years ago
|
Comment 5•3 years ago
|
||
bugherder |
Description
•