-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance optimisation of 'likelihood'.
Per the micro-benchmark for likelihood, this reduces the time from around 50-60ms to around 1. Since this accounts for about 60-70% of the time spend in `createRUpd`, we should hope to see at least a doubling of performance there. The optimisation is achieved by calculating `Set.fromList` only once, rather than for each reward calculation.
- Loading branch information
Showing
2 changed files
with
79 additions
and
42 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
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