필터 지우기
필터 지우기

Speed up mcr on Linux using background script

조회 수: 1 (최근 30일)
Ben
Ben 2015년 8월 12일
We are writing a web application that runs a deployed matlab function, and returns a result as a json file to be loaded to the web page. (Linux Debian, Matlab 2015a)
It works fine except that it takes a long time for the mcr to unpack for each call to the function. This really slows down the running of the web page.
We've tried the MCR_CACHE_ROOT=/tmp/mcr_cache_root_$USER approach but no success.
We've tried another approach where a small script runs in the background, simply waiting for a user input ( input() command). The idea being that the mcr would remain unpacked while the background function runs. But this doesn't help either - there seems to be duplicate caches.
Anything else we can try?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by