MATLAB: Effect of using masked subsystem on simulation speed

masked subsystemsimulation speedsimulink

Hello In my simulink model I am using a number of masked blocks. Each block based on their parameter and connection modifies itself. I want to know that how the simulation speed can be affected by using such masked subsystem inside the model.
Thanks

Best Answer

AFAIK, the only effect of masks on simulation performance is that at initialization time, block dialog parameters are first evaluated in the mask workspace (if using mask workspace variables in the dialog). Initialization happens once at the start of simulation time and every time you Update Diagram (Ctrl+D) during simulation.
Are you seeing any runtime overhead?