Time to save mat file differs by MATLAB version

2 Ansichten (letzte 30 Tage)
Paul
Paul am 15 Mär. 2012
I am using MATLAB version 7.12.0.0635 (R2011a). We deploy a medium size software package that allows the user to save their project. When I save a project it takes about 5 min. Using the profiler I isolated the bottleneck to the save command. If I use the '-v7.3' switch, saving the project only takes 1 minute. I didn't see anything in the documentation that would explain this. Any ideas?

Antworten (1)

Jan
Jan am 15 Mär. 2012
Usually save -v6 is faster, because it does not compress the data - there seem to be some rare exceptions. v7.3 is required for data > 2GB. How large is your file usinge the different formats?
  1 Kommentar
Paul
Paul am 16 Mär. 2012
Well, I ran some tests and here are the results. I am saving the exact same project and only changing the switch on the save command.
MAT file Ver.******Save time (s)*** size (KB)
7.12.0635 (R2011a)* 268************ 11893
-v7.3 ************* 58 ************ 54354
-v7 *************** 271************ 11893
-v6 *************** 283 *********** 87911
Of course, all of these operations are being performed in MATLAB version 7.12.0635 (R2011a). I was so surprised by v7.3 that I had to run the test twice and will check again today. The file being saved has raw data and an extensive set of nested function handles several layers deep. I think all the time is required for linking. It is possible that the problem exist somewhere else in our software that indirectly relates to the speed seen here.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Software Development Tools finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by