Main Content

Code Efficiency

Optimize generated code by minimizing memory requirements and speeding up execution

Once you are ready to generate production code, use model configuration settings to improve code efficiency. These settings reduce RAM and ROM consumption and speed up code execution. If you want more defensive code at the expense of some efficiency, you can disable one or more of these options.

You can run the current configuration of a model against one or more of the objectives available in the Code Generation Advisor. Based on your objective selections and prioritizations, the Code Generation Advisor offers changes that you can make to your model configuration settings. To get you started with code optimization basics, see Optimize Generated Code with Code Efficiency Tools and Techniques.

Categories