Closed Bug 598966 Opened 14 years ago Closed 14 years ago

Idle service should invoke components registered in a idle-daily category

Categories

(Core :: Widget, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b7

People

(Reporter: mak, Assigned: mak)

References

Details

(Whiteboard: [Ts])

Attachments

(1 file, 1 obsolete file)

Various services just need to do their work in idle-daily. To accomplish the task we have to init the component, then register for idle-daily, then wait to be called.

It would be better (also from a startup perf point of view) if idle service could init those components by itself before notifying, through a category cache.
I'll try to bring this out because I want it for bug 541373 and is a possible help for startup time.
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Whiteboard: [Ts]
Attached patch patch v1.0 (obsolete) — Splinter Review
The patch is pretty small, maybe too small! Unfortunately I have no idea how I could test this stuff, I can't force a system idle, or at least I think so.

Will test manually reducing some timeout.
Depends on: 602085
Attached patch patch v1.1Splinter Review
applies on top of bug 602085, thus it's even smaller than 1.0!

tested manually with my patch in bug 570387
Attachment #481063 - Attachment is obsolete: true
Attachment #481493 - Flags: review?(sdwilsh)
Comment on attachment 481493 [details] [diff] [review]
patch v1.1

moving review to roc, since Shawn will be away for some days and is unlikely to find time soon
Attachment #481493 - Flags: review?(sdwilsh) → review?(roc)
Comment on attachment 481493 [details] [diff] [review]
patch v1.1

Thanks!

This needs approval, it's nice to have to avoid useless work at startup
Attachment #481493 - Flags: approval2.0?
Attachment #481493 - Flags: approval2.0? → approval2.0+
http://hg.mozilla.org/mozilla-central/rev/d001a53858f0
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Target Milestone: mozilla2.0b8 → mozilla2.0b7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: