Is it possible to load mcr once at windows startup
12 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!