Reduce MATLAB method startup time
3 ビュー (過去 30 日間)
古いコメントを表示
I am running a number of MATLAB compiled methods from within a >NET winforms application.
The verty first time I call any of the compiled methods, the startup time is very long (1-2 minutes). I expect this is because the matlab run-time is bing initialized. Is there an approproate way to initialize theMATLAB run-time beofre I attempt to call a particualr method? If there was some mehod I could call during the form startup, then my user would not need to experience this delay.
0 件のコメント
回答 (1 件)
BobH
2020 年 3 月 10 日
I couldn't find a way to avoid the delay, but I use this to give the user a reason for the delay. It uses my specific situation where on a fresh start of MATLAB, inmem reports 22 items, but after the long delay completes, inmem reports 237 items.
if( length(inmem) < 100 )
disp(' ... allow 30 seconds to preload more of MATLAB. This is a one-time delay.');
end
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler SDK についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!