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

Only retrieve the fast-track population attribute if necessary in enforce_priority_policy #1589

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

tamuri
Copy link
Collaborator

@tamuri tamuri commented Feb 12, 2025

  • Profiling revealed that around 15% of runtime was being spent in this method
  • Specifically, getting all the fast-track attributes for the event's target individual, whether that is needed or not
  • Noted that the vast majority of events do not have fast-track priorities (or, in policies that do, not all attributes do).
  • We exit after first fast-track attribute encountered.

- Profiling revealed that around 15% of runtime was being spent in `enforce_priority_policy`
- Specifically, getting all the fasttrack attributes for the event's target individual, whether that is needed or not
- Note that vast majority of events do not have fasttrack priorities (or, in policies that do, not all attributes do)
@tamuri tamuri requested a review from marghe-molaro February 12, 2025 16:01
@tamuri tamuri merged commit 63f41b1 into master Feb 13, 2025
62 checks passed
@tamuri tamuri deleted the tamuri/hs-enforce_priority_policy branch February 13, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants