The application discloses a QuickJS multi-interface collaborative optimization method and
system of embedded equipment, relates to the technical field of JS multi-interface optimization, and comprises the following steps: S1, collecting interface task data, performing data preprocessing, identifying control difference and state change before and after the task; S2, setting a basic frame budget, constructing a task
frame time consumption model, outputting a predicted
frame time consumption, and comparing the current frame actual time consumption with the basic frame budget; S3, calculating the interface task priority, performing real-time sorting and scheduling, and establishing an asynchronous
coroutine and task splitting and sticking mechanism; S4, outputting a structured rendering command, evaluating the redundancy of the control, and taking control adjustment measures; S5, constructing an error description vector, quantifying the deviation degree of the actual rendering result, and taking a
rollback recovery measure; the problems that interface response depends on an
event loop in the interaction between QuickJS and the underlying UI
system, and that multiple JS interface tasks are simultaneously activated, resulting in abnormal interface rendering, are solved.