Movefile optimization and operation
Ältere Kommentare anzeigen
Hey, just a short question. When renaming a file with movefile, does Matlab optimize away the move part of movefile when source and destination are in the same directory? I'm performing an operation on a file using a toolbox which writes in place to the file, but I'd like to prefix the file with a character to denote what operation has occurred. As the file can potentially be quite large, I'd like to avoid actually shuffling the data around.
As an aside, how does movefile actually work? Does it just update the directory table? If so, is there any difference in the overhead when renaming a file, like I am, compared to moving the file to some other directory on the same volume?
Akzeptierte Antwort
Weitere Antworten (1)
MOVEFILE has been very slow at least until R2009a, perhaps until today. The C implementation can be much faster: http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename, but it has not been tested under Linux.
Kategorien
Mehr zu Search Path finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!