I'm running a simulation with 20000 sweeps, and for every sweep, I need to save a very large array of integers with the values 1, and -1 to a data file. The number of integers printed can reach 1e11.
my problem is that the size of the data file becomes huge (up to 50GB)
I'm currently using fprintf
with int
datatype.
does anyone know a way to save these values without taking that much disk space?
Thanks in advance