429Using Compiled Code
cfg.SaturateOnIntegerOverflow = false;
codegen -config cfg dijkstra
All settings are selected (checked) by default. Disabling these checkboxes can have a
negative effect on functionality. For example, without the Ctrl-C check, the program can-
not be stopped in mid-run; without memory integrity checks the application might crash.
But disabling these checks has a large impact on runtime performance: In our Dijkstra
example (§8.2.3), the speedup versus original m-code increased from 6 to 16.
Note that some settings have changed between MATLAB R2013a and R2013b; some
R2013a settings were removed in R2013b, while R2013b introduced some new ones.
All these settings, except integer-overow saturation, are only applicable i