- Make sure that you are using the latest version of the MATLAB runtime and shared libraries.
- If you are using the Application Compiler to build your applications, make sure that you are using the latest version of the compiler and that you are compiling your applications for the correct platform.
- Try to reduce the size of your applications by removing any unnecessary code or resources.
MATLAB R2022b applications/binaries in linux take longer to start.
3 ビュー (過去 30 日間)
古いコメントを表示
I have been seeing this problem where when I build an application in MATLAB R2022b using Application Compiler, and try to launch it via terminal by doing ./'nameofApplication' it takes way longer than expected.
However when I launch the same .m file which is used to build the application in MATLAB, its almost instantaneous.
Any idea what might be happening ? can it be the MATLAB runtime or the shared libraries that takes longer to load when runnning it standalone vs in MATLAB as a .m file ?
0 件のコメント
採用された回答
Dhruv
2023 年 9 月 21 日
Yes, it is possible that the MATLAB runtime or the shared libraries take longer to load when running a standalone MATLAB application/binary in Linux than when running the same .m file in MATLAB.
The reason is that when you run a standalone MATLAB application/binary, the MATLAB runtime and shared libraries have to be loaded into memory from scratch. Also, the MATLAB runtime has to initialize a number of things, such as the MATLAB workspace and the graphics system. All these factors can contribute to the process taking lot of time.
In contrast, when you run a .m file in MATLAB, the MATLAB runtime and shared libraries are already loaded into memory and initialized. This means that the .m file can start running much faster than a standalone MATLAB application/binary.
Here are some things you can do to try to reduce the startup time of standalone MATLAB applications/binaries in Linux:
I hope the above-mentioned suggestions will help reduce the delay time!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で C Shared Library Integration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!