To improve the simulation speed of a Stateflow® chart, disable debugging support and simulation options that impact execution speed. Close all scopes and charts and use library charts in your model.
Speed Up Simulation
Reduce simulation time for large models.
Speed up simulations by recompiling only some parts of the chart.