-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of functions counting the number of plays
See #22 <#22 (comment)> It looks worse and I think I've done this the first time, then went to creating aspects, dervied Eq for them, and compared those directly for it to look nicer. But seems like allocating a new aspect every time is very time-consuming. Comparing Strings directly without re-allocating anything is the way to go apparently. For normal single usage it doesn't matter. But I discovered this while working on plots and there I have to call such a function for every data point (bc I don't want to lower resolution it's equivalent to every time the aspect exists in the dataset heh). There it makes the code 6x faster
- Loading branch information
Showing
2 changed files
with
18 additions
and
26 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