Why does CD-ing into a directory with a large number of files slow down MATLAB 8.0 R2012b on Linux?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 4 Nov. 2013
Kommentiert: Walter Roberson
am 13 Aug. 2022
I have a directory that contains a large number of my files (size ~ 75GB).
When I CD into this folder, MATLAB does not respond for as long as 6 minutes. How do I reduce this delay? I am using a Linux machine.
Akzeptierte Antwort
MathWorks Support Team
am 19 Okt. 2018
Currently the only way to work around this is to use the -nodesktop option while starting MATLAB.
Apart from this, there are no other workarounds.
2 Kommentare
Walter Roberson
am 13 Aug. 2022
When you cd into a directory, matlab needs to examine all of the file names to see if there are any m or p or mlx or slx or mlapp or mex* files (and so on) as the executables in a directory become part of the matlab path, potentially requiring a change in execution path.
You should avoid cd in programs .
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu File Operations 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!