Closed ElseDP closed 3 weeks ago
https://github.com/ApolloAuto/apollo/blob/fb23f6a1520a34ad38934b0c81fe5377452c2deb/cyber/scheduler/policy/choreography_context.cc#L48
After calling ChoreographyContext::NextRoutine() to obtain cr, the cr_queue_ does not remove this data. As a result, the cr_queue keeps growing, which affects efficiency.
ChoreographyContext::NextRoutine()
cr
cr_queue_
cr_queue
No need to delete
https://github.com/ApolloAuto/apollo/blob/fb23f6a1520a34ad38934b0c81fe5377452c2deb/cyber/scheduler/policy/choreography_context.cc#L48
After calling
ChoreographyContext::NextRoutine()
to obtaincr
, thecr_queue_
does not remove this data. As a result, thecr_queue
keeps growing, which affects efficiency.