-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the collection of daily HSI events for mode 1 (#1586)
- Collecting index of alive individuals repeatedly allocates memory and becomes slower than querying directly (esp. on large populations) - In mode 1, HSI events have the same priority so queue is effectively ordered by date. Stop processing when we reach the events from the next day - If health system is running in mode 1, then always ignore priority setting (all events get priority 0) - If we switch from mode 1 to mode 2, update every HSI event in the queue with enforced priority
- Loading branch information
Showing
1 changed file
with
57 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters