Evaluate aggregating timers to reduce the number of times we wake up the CPU for serving them
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
Performance Impact | medium |
People
(Reporter: gsvelto, Unassigned)
References
Details
(Keywords: perf:resource-use)
Comment 1•10 years ago
|
||
Reporter | ||
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Comment 4•4 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.
If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.
Comment 5•4 years ago
|
||
This work is pretty important for mobile, and I would argue is pretty important for being competitive with respect to power consumption in general (laptops etc). I'd like to request that this bug be reconsidered. Thanks!
Comment 6•4 years ago
|
||
We should often be running many setTimeout timers during a single thread level task,
https://searchfox.org/mozilla-central/rev/58e955b8005b4845c42e874a6b9aa5b223ef0d82/dom/base/TimeoutManager.cpp#684 and onward.
This bug was filed way before any of the timeout handling changes landed.
Would be nice to get some data here what to improve.
Comment 7•4 years ago
|
||
(In reply to Aaron Klotz [:aklotz] from comment #5)
This work is pretty important for mobile, and I would argue is pretty important for being competitive with respect to power consumption in general (laptops etc). I'd like to request that this bug be reconsidered. Thanks!
(In reply to Olli Pettay [:smaug] from comment #6)
Would be nice to get some data here what to improve.
Hi Aaron, can you gather such evidence that this is still an issue?
Comment 8•4 years ago
|
||
I'll raise this at my team's weekly meeting tomorrow, though given the timing we might not be able to properly discuss it until the new year.
Comment 9•4 years ago
|
||
Adding perf triage tag – seems like a pretty reasonable battery improvement effort for fenix but "collecting a bit of data could help determine if this is high value - Even adding a log that we could read from logcat to see how often this is happening." (quote from acreskey)
Reporter | ||
Comment 10•4 years ago
|
||
The timer implementation has extensive logging built in and it can be turned on dynamically: https://searchfox.org/mozilla-central/rev/dd042f25a8da58d565d199dcfebe4f34db64863c/xpcom/threads/nsTimerImpl.cpp#46
Reporter | ||
Comment 11•4 years ago
|
||
Also switching the platform to All/All because this is most definitely not a B2G-specific thing now though it would help there too :-)
Updated•4 years ago
|
Updated•3 years ago
|
Description
•