Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pair status update with status #4

Open
gvegayon opened this issue May 3, 2022 · 0 comments
Open

Pair status update with status #4

gvegayon opened this issue May 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@gvegayon
Copy link
Member

gvegayon commented May 3, 2022

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]();.

@gvegayon gvegayon added the enhancement New feature or request label May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant