memilio
memilio copied to clipboard
Get_subpopulation is slow
Motivation / Current Behaviour
get_subpoulation is really slow and is needed for several loggers
Enhancement description
Discuss, how we should tackle this
e.g. we could just don't use it and use: for (auto&& person : sim.get_world().get_persons()) { for (uint32_t inf_state = 0; inf_state < (int)mio::abm::InfectionState::Count; inf_state++) { if (person.get_infection_state(curr_time) == mio::abm::InfectionState(inf_state) && person.get_should_be_logged()) { sum[inf_state] += 1; } } }
Additional context
No response
Checklist
- [ ] Attached labels, especially loc:: or model:: labels.
- [ ] Linked to project