Closed Bug 1410096 Opened 5 years ago Closed 5 years ago
Event Queue::Put Event is slow
When profiling https://bugzilla.mozilla.org/show_bug.cgi?id=1254240#c0, LabeledEventQueue::PutEvent is over 11% of the postMessage() call time in worker. Of that 1/3 is hashtable operations. Malloc is over 20% (looks like we push stuff to a Queue). Then there is some extra addref/release and QI.
There aren't any available xpcom reviewers as far as I can tell. I ran this through the profiler and it fixes the perf issues as far as I can tell.
Attachment #8932084 - Flags: feedback?(wmccloskey)
Attachment #8932084 - Flags: feedback?(wmccloskey) → review?(bugs)
Attachment #8932084 - Flags: review?(bugs) → review+
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/4418485f0512 Move labeled queues to SchedulerGroup. r=smaug
Backed out for bustage at dist/include/mozilla/SchedulerGroup.h:186: https://hg.mozilla.org/integration/mozilla-inbound/rev/d1b45fb8d2049dd04d169582e099a34140abfdfe Push with bustage: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=4418485f0512638f30cc43c62c16dd97ba1f2c69&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=usercancel&filter-resultStatus=runnable&filter-resultStatus=retry Build log: https://treeherder.mozilla.org/logviewer.html#?job_id=149594847&repo=mozilla-inbound /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/SchedulerGroup.h:186:23: error: expected ';' at end of member declaration /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/SchedulerGroup.h:186:46: error: expected ')' before 'aPriority' /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/SchedulerGroup.h:226:42: error: 'EventPriority' was not declared in this scope
Add missing header to fix build bustage. Carrying over r+
Make unified build work for dom/plugins. EventPriority from AbstractEventQueue.h clashes with mac headers.
Attachment #8935344 - Flags: review?(jmathies)
Comment on attachment 8935344 [details] [diff] [review] 0002-Bug-1410096-Make-unified-build-work.-r-jimm.patch Smaug, can you review this?
Attachment #8935344 - Flags: review?(jmathies) → review?(bugs)
Comment on attachment 8935344 [details] [diff] [review] 0002-Bug-1410096-Make-unified-build-work.-r-jimm.patch rs+
Attachment #8935344 - Flags: review?(bugs) → review+
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/0b8cec51ffc2 Move labeled queues to SchedulerGroup. r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/51e4d95d19a4 Make unified build work. r=smaug
You need to log in before you can comment on or make changes to this bug.