UCL / TLOmodel

Epidemiology modelling framework for the Thanzi la Onse project
https://www.tlomodel.org/
MIT License
13 stars 5 forks source link

Lifestyle logging taking a significant amount of time #1132

Open mnjowe opened 1 year ago

mnjowe commented 1 year ago

---From Asif on Lifestyle profiling results--- If we focus just on the lifestyle code, and order by cumulative time, we see that the logging is taking a significant amount of time per call. Can you see whether you can improve the performance here? You might need to do some profiling inside the method - it looks like the flatten_multi_index_series_into_dict_for_logging is slow, as well as the lookups for each of the property grouping calls.

mnjowe commented 1 year ago

Hi @tamuri . Kindly find attached zip folder for lifestyle profiling. The zip contains both the previous(old) and new profiling files. lifestyle_profile.zip