Speed up mcr on Linux using background script

2 次查看(过去 30 天)
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