-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve SelectVariant performance (#187)
* Improve SelectVariant performance A three changes were made to improve performance: - totalWeight was not needed, per the docs this will always be 100%. This removes the Sum call which loops over the list of variants. - The FirstOrDefault call was removed, this allows for us to loop over the list of variants only once. - We check if there are any overrides before calling Any. * Fix failing tests * Add back weight
- Loading branch information
1 parent
e86849d
commit ee158d1
Showing
1 changed file
with
13 additions
and
16 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