Is it possible to load mcr once at windows startup
7 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Jim David
on 8 Oct 2018
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 Comments
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown 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!