how to speed up startup of compiled application? Win 10, MCR 9.3

14 ビュー (過去 30 日間)
Remi Marchand
Remi Marchand 2020 年 1 月 16 日
コメント済み: Remi Marchand 2020 年 3 月 12 日
We have created an application that is run on a compiled version with Matlab Compiler. This application is launched at startup when a user logs in.
When we moved to Windows 10 we had to update the application so it is compiled with MCR 9.3 (windows 10 compatible) while this was done previously with MCR 8.2 on Windows 7. However this change seems to have considerably slowed down the process as it takes about 2 minutes 30 to open (previously only 15 seconds on Win7/ MCR 8.2).
I suspect that this is due to the fact that Win10 erase the temp folder on shutdown/restart while the application creates some data on "C:\Users\userID\AppData\Local\Temp\1\userID\mcrCache9.3" which takes a considerable time to redo at each startup.
Any help on how to resolve this issue would be much appreciated. Please note that enabling Windows fast startup is not an option as per our IT requirements.
  2 件のコメント
Mohammad Sami
Mohammad Sami 2020 年 1 月 16 日
I also have this issue. Never found any solutions. I believe it may just be because new versions of matlab are heavier then the old versions.
Remi Marchand
Remi Marchand 2020 年 3 月 12 日
I ended up by solving the issue by changing the MCR root path by creating a Windows environment variable "MCR_CACHE_ROOT" with the following directory: "C:\Users\userID\AppData\Local\Temp\userID\mcrCache9.3" (similar directory as above but without the \1\ folder)
An other alternative would be to run the program as admin which some put the MCR cache in the directory as described above

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 1 月 16 日
https://www.mathworks.com/matlabcentral/answers/99307-how-can-i-install-the-matlab-component-runtime-without-administrator-rights-when-using-matlab-compil gives information on how to put a copy of mcr into a directory of your choice and make it available for program use.
The idea is that you would deliberately create a directory for mcr that did not live in the user's appdata and therefore would not get deleted by your site policy when the user logged off.

カテゴリ

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