UofUEpiBio / epiworld

A general framework for quick epidemiological ABM models
https://uofuepibio.github.io/epiworld/
MIT License
6 stars 1 forks source link

Pair status update with status #4

Open gvegayon opened 2 years ago

gvegayon commented 2 years ago

The Person::update_status function uses the IN template function which right now is causing a bit of a bottleneck. Instead of checking set inclusion, we could leverage that statuses are unsigned ints, and thus an updating function could be reached by simply accessing by index, i.e., update_status_funs[p->status_current]();.