Why is MATLAB UI so slow?
2 views (last 30 days)
Show older comments
What may cause MATLAB UI to be so slow?
Executing
bench
ranks this machine second, returning
0.0908 0.0889 0.1109 0.2294 0.3621 0.1953
However, if I execute a comment in the command prompt
% hello world
takes a couple seconds before coming back to the command prompt. After executing the command several times, the delay goes away. This is just an example. I'm showing graphs, using the editor to execute blocks, debug, etc. and in general behaves slowly. If I time commands using tic toc, there is a delay that does not contribute to the timing. If I execute
ver
some of the output is:
MATLAB Version: 8.2.0.701 (R2013b)
Operating System: Microsoft Windows 8 Version 6.2 (Build 9200)
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Version 8.2 (R2013b)
Image Processing Toolbox Version 8.3 (R2013b)
Parallel Computing Toolbox Version 6.3 (R2013b)
Signal Processing Toolbox Version 6.20 (R2013b)
Statistics Toolbox Version 8.3 (R2013b)
3 Comments
Answers (1)
Walter Roberson
on 18 Oct 2013
Try
rehash toolboxreset
rehash toolboxcache
and see if things speed up after that.
When you use your own code, the first time (in each MATLAB session, or since the last "clear all") any routine is executed it must be parsed and converted into internal code. Using pcode can reduce the parsing time.
0 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!