At the moment, record/dump files are opened using a context manager, so they are effectively opened and closed each time the framework writes to file. It may be worth investigating whether there is much gain in keeping files open for the duration of the simulation.
At the moment, record/dump files are opened using a context manager, so they are effectively opened and closed each time the framework writes to file. It may be worth investigating whether there is much gain in keeping files open for the duration of the simulation.