Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: MAT file takes forever to save with big object array
Replies: 6   Last Post: Dec 6, 2012 2:34 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jeremy

Posts: 33
Registered: 5/4/10
Re: MAT file takes forever to save with big object array
Posted: Apr 13, 2011 1:19 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Alexey - I am having the exact same problem as you. As a partial solution, I tried using serialize/deserialize (from the FEX) before save. With a ~2.5GB cell array of structures, the command save('blah.mat',serialize(str),'-v7.3') took about a minute, as opposed to a couple of hours with save and v7.3 alone. Unfortunately, for me this only worked with variables of around 2.5GB in size. Trying the same approach with a 8.5GB cell array of structures never quite finished serializing/saving before I got frustrated and Ctrl+C'd it.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.