Suggestion
The scheduler for component lifecycles currently pushes boxed runners into the queue, incurring an allocation. A stable memory allocation is already available, in the form of a Rc<ComponentState> for each component. This could be used to store the pending lifecycle events similar to the MsgQueue that was introduced as part of #2421. An implementation should not re-introduce the generics that were removed as part of that PR.
See also: #2330 (comment)
Questionnaire
Suggestion
The scheduler for component lifecycles currently pushes boxed runners into the queue, incurring an allocation. A stable memory allocation is already available, in the form of a
Rc<ComponentState>for each component. This could be used to store the pending lifecycle events similar to theMsgQueuethat was introduced as part of #2421. An implementation should not re-introduce the generics that were removed as part of that PR.See also: #2330 (comment)
Questionnaire