Is it possible to load mcr once at windows startup

7 ビュー (過去 30 日間)
Ganesh  Ala
Ganesh Ala 2018 年 10 月 2 日
回答済み: Jim David 2018 年 10 月 8 日
I am trying to use matlab standalone program on my laptop created on AppDesigner and it is incredibly slow for my liking, but when I try to open the program on my computer with MATLAB on it, it is starting up in reasonable times. So, I was wondering if it is possible to load the matlab mcr once whilst starting the computer so I do not have to wait for the mcr to load whenever I open the standalone program.

採用された回答

Jim David
Jim David 2018 年 10 月 8 日
It is currently not possible to load the MCR once and have that be sufficient for the executions of the standalone application. Please note that initializing MCR should take relatively the same amount of time as starting an instance of MATLAB.
However, performance improvements may be obtained by using the -C flag with the mcc command while creating the standalone application. Assuming we have a file named appName.m, the following command would be an example.
>> mcc -mC appName.m
More information about the mcc command can be found here:
The ctf file is extracted before the application is run. Improved performance when using the -C flag would indicate an issue with the location that the ctf file is being extracted to. This could be changed to a more appropriate path by changing the MCR_CACHE_ROOT environment variable. Information about MCR_CACHE_ROOT can be found through the following link:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by