Why is my stand-alone application, built with the MATLAB Compiler 3.0 (R13), much slower than the same application built with the MATLAB Compiler 2.2 (R12.1)?

Why is my stand-alone application, built with the MATLAB Compiler 3.0 (R13), much slower than the same application built with the MATLAB Compiler 2.2 (R12.1)?

 Accepted Answer

This is a bug in the MATLAB Compiler 3.0 (R13). Our development staff is investigating this issue.
To work around this issue, disable the compilation optimization pertaining to 'array_indexing' .
Code that was generated without optimization selected has been shown to run faster.
To do so, add the '-O array_indexing:off' option to your compilation line:
mcc -O array_indexing:off -v -B sgl my_application.m

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!