Skip to content

Memory Efficiency of the freezeout #36

@nilssass

Description

@nilssass

I recently found out that a large fraction of the size of the freezeout.dat is caused by storing white spaces. In my own case, I started with a freezeout.dat of 128MB.

Afterwards I removed all but one white spaces to separate the columns. Removing the white spaces resulted in a freezeout of 59MB which means a reduction of $\sim$ 54% without losing any physical information. As a consequence I recommend the following points:

  • Getting rid of leading white spaces at the start of each line as they are unnecessary
  • Reducing the precision from 15 to 10 digits precision. I doubt that a 15 digits precision is really needed
  • Instead of using setw(24) one could use a single white space separation if it is not strongly needed that the columns are aligned for readability. The freezeout anyhow is too large to be readable. If readability is still needed, then setw(24) should at least be reduced to setw(16)

With these recommendations we could save roughly up to 60% memory for each freezeout surface file.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions