-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimise time taken to get raw graph
The main change is the restructure of the variable `SuiteConfig().edges`. It is now a dict. Each key is a unique sequence, and each value is a set of `(left, right, suicide, conditional)` tuples. This change allows `get_graph_raw` to look at each unique sequence once instead of multiple times. There is also caching at various points to reduce the number of expensive calls to regular expression matching and date-time functionality. Other minor changes include: * Remove unused variables. * Use compiled regular expressions where possible. * Reduce usage of complex regular expressions. * Remove edge and graphnode objects, which were not cheap to initialise.
- Loading branch information
1 parent
7162266
commit 08c0c3a
Showing
8 changed files
with
258 additions
and
368 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.