Investigate better scheduling for XPCJSRuntime::DoCycleCollectionCallback
Categories
(Core :: XPConnect, task, P3)
Tracking
()
People
(Reporter: smaug, Assigned: smaug)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
XPCJSRuntime::DoCycleCollectionCallback runs CC often at the worst possible time, when the main thread is busy doing other things.
Just changing it use idle time might be good, and at least locally that seems to behave well, but need to get performance numbers for this.
Updated•3 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
Looks like it triggers a sync CC and without any pre-CC optimization phases, so the triggered CC can be really long.
Comment 2•2 years ago
|
||
(In reply to Olli Pettay [:smaug][bugs@pettay.fi] from comment #1)
Looks like it triggers a sync CC and without any pre-CC optimization phases, so the triggered CC can be really long.
It's sync because it's a work around for incremental barriers keeping things alive which should die. But we should definitely do any optimization phases that would make this faster.
Description
•