Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6085 > unrolled thread

DumpSave run time

Started byArthur <shukrri@gmail.com>
First post2011-11-01 05:06 +0000
Last post2011-11-07 10:52 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  DumpSave run time Arthur <shukrri@gmail.com> - 2011-11-01 05:06 +0000
    Re: DumpSave run time Rui <rui.rojo@gmail.com> - 2011-11-07 10:52 +0000

#6085 — DumpSave run time

FromArthur <shukrri@gmail.com>
Date2011-11-01 05:06 +0000
SubjectDumpSave run time
Message-ID<j8nunr$eg7$1@smc.vnet.net>
Hi guys,

I ran a simulation with Mathematica overnight which resulted in a
dozen matrices of a few million entries each. I wanted to save the
data so I can work with it later and used
DumpSave["file.mx","Global`"];

As of now it's been over 4 hours, with Mathematica periodically
telling me that the dynamic kernel is taking too long and asking me if
I want to continue waiting (I click yes).

Is this kind of lag normal? Is there anything I can do to optimize it?
The saving is taking almost as long as the simulation. I can't imagine
my data using more than a gig of data, I don't even think my hard
drives are big enough to store the amount of data that could be
written in 4 hours...

Thanks,

[toc] | [next] | [standalone]


#6246

FromRui <rui.rojo@gmail.com>
Date2011-11-07 10:52 +0000
Message-ID<j98d9s$3mc$1@smc.vnet.net>
In reply to#6085
No, it's not normal and it shouldn't take that long. You also shouldn't be 
afraid to disable dynamic evaluation. Also, if I could I would abort the calculation. DumpSave should work fast. Who knows, unless you had 30GB RAM and other stuff you didn't say in the Global` context, that shouldn't happen.  You could also check if the matrixes are packed arrays by using Developer`PackedArrayQ and if not and possible, turn them into them by resaving as Developer`ToPackedArray[...]

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web