Variable MCR_CACHE_SIZE?

조회 수: 6 (최근 30일)
Luc Masset
Luc Masset 2020년 1월 16일
댓글: Deepak Kumar 2020년 1월 29일
Hello,
I would like to know the exact purpose of the variable MCR_CACHE_SIZE? My compiled app is around 40 Mb. I have read that the default MCR_CACHE_SIZE is 32 Mb. Does this mean that I need to set the MCR_CACHE_SIZE to a greater value to avoid issues during execution? If I need to increase the cache size, what is the syntax? set MCR_CACHE_SIZE="64Mb"?
Thx in advance,
Luc Masset

채택된 답변

Luc Masset
Luc Masset 2020년 1월 28일
Hello Deepak,
Thank you for your answer. Eventually I set the variable MCR_CACHE_SIZE to 64 Mb in the command file used to launch the executable (set MCR_CACHE_SIZE=67108864). However I have also tested a value of 2 (2 bytes) and it does not seem to change anything.
Regards,
Luc
  댓글 수: 1
Deepak Kumar
Deepak Kumar 2020년 1월 29일
How are you measuring the execution time of your App? May be, your App size is small and hence you are not observing any noticeable change in the execution time.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Deepak Kumar
Deepak Kumar 2020년 1월 24일
You can set the size of MCR_CACHE_SIZE environment variable by editing the .max_size file which resides in the current cache directory (which can be found by executing the following command at the MATLAB command prompt)
>>mcrcachedir
As per my understanding, increasing the MCR_CACHE_SIZE might help to speed up the execution of your program.
Refer the below documentation link for more details :

카테고리

Help CenterFile Exchange에서 Java Package Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by