In my model I'm using behaviour space to carry out a number of runs, with variables changing for each run and the output being stored in a *.csv for later analysis. The model runs fine for the first few iterations, but quickly slows as the data grows. My questions is will file-flush when used in behaviour space help this? Or is there a way around it?
Cheers
Simon
Make sure you are using table format output and spreadsheet format is disabled. At http://ccl.northwestern.edu/netlogo/docs/behaviorspace.html we read:
Note also:
where the linked FAQ entry is http://ccl.northwestern.edu/netlogo/docs/faq.html#howbig
Using
file-flush
will not help. It flushes any buffered data to disk, but only for a file you opened yourself withfile-open
, and anyway, the buffer associated with a file is fixed-size, not something that grows over time.file-flush
is really only useful if you're reading from the same file from another process during a run.