Why is code taking so long just to start?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Paul Crittenden
am 7 Jan. 2017
Bearbeitet: Walter Roberson
am 7 Jan. 2017
I have a code that used to run quickly. Now it takes forever just to start doing anything. There seems to be a delay before it gets going. I say this because if I let it spit out intermediate results ones from even the first few lines of the code take a long time to show up in the command window. Possibly related the Run button does not seem to work anymore. If I push Run nothing happens in the command window unless I go to it and hit enter, then busy comes up in the bottom corner. Same symptoms only worse for parallel programming. Specifically there is a long initial delay and then when parfor is encountered it takes an unreasonable amount of time to start my cores. This is all on a Windows 10 machine with an 8-core processor. I usually run pretty complicated cfd code, but I get the same symptoms if I just make a simple nonsense loop.
1 Kommentar
Walter Roberson
am 7 Jan. 2017
Bearbeitet: Walter Roberson
am 7 Jan. 2017
Does the same thing happen if you use the command line? That is, is there a notable delay even for function calls like sin(1) from the command line?
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!