MRC-CSO-SPHSU / LoneParentsModel.jl

An initial implementation of an ABM for social and child care
0 stars 5 forks source link

Performance with logging , input files , #138

Closed AtiyahElsheikh closed 1 year ago

AtiyahElsheikh commented 2 years ago

Memory allocation increased a lot after using logging etc. Not sure if this is the only cause, as I was using the recent version of Simulate before modification.

For insuring I am creating a light version without I/O, logging etc.

mhinsch commented 2 years ago

It's probably best to check this using the profiler.

AtiyahElsheikh commented 2 years ago

I believe I have used once code_warntype on doDeaths! and the only (yellow light) warning was the combination of {Nothing,Person}

mhinsch commented 2 years ago

I believe I have used once code_warntype on doDeaths! and the only (yellow light) warning was the combination of {Nothing,Person}

We might want to change this to using a Nobody constant (equivalent to UndefinedHouse) at some point.