Skip to content

Commit

Permalink
optimize reordering of ml-matches to avoid unnecessary computations
Browse files Browse the repository at this point in the history
This now chooses the optimal SCC set based on the size of lim, which
ensures we can assume this algorithm is now << O(n^2) in all reasonable
cases, even though the algorithm we are using is O(n + e), where e may
require up to n^2 work to compute in the worst case, but should require
only about n*min(lim, log(n)) work in the expected average case.

This also further pre-optimizes quick work (checking for existing
coverage) and delays unnecessary work (computing for *ambig return).
  • Loading branch information
vtjnash committed May 12, 2023
1 parent 8bbbf3e commit 2e90105
Show file tree
Hide file tree
Showing 3 changed files with 311 additions and 151 deletions.
Loading

0 comments on commit 2e90105

Please sign in to comment.