-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some more cleanup to regex NonBacktracking (#104766)
* Rent object[] rather than (uint,uint)[][] from the ArrayPool * Remove unnecessary TInputReader generic from functions * Add more comments and do some renames * Remove unused TFindOptimizationsHandler from FindEndPositionDeltasNFA * Fix a stray input reader * Some more renames * Avoid duplicated reads of input character and nullability info * Remove initialStateId from TryFindNextStartingPosition and make initial accelerators more similar * Remove unused initialStatePos / initialStatePosCandidate It's only ever written and not actually used for anything. * Remove unnecessary generic args and remove resulting dead code Multiple XxDfa / XxNfa methods took a TStateHandler, but it was only ever DfaStateHandler for XxDfa or NfaStateHandler for XxNfa. We can just use the types directly in those methods, rather than generically parameterizing. Doing that revealed all but one of the members of IStateHandler weren't needed on the interface. And removing those revealed a bunch of dead code on DfaStateHandler/NfaStateHandler, which were removed, as well as arguments to some methods that weren't used. * Put GetStateFlags back in IStateHandler and use it to avoid duplication at call sites * Put out argument last in TryCreateNewTransition * Store state to local in FindStartPositionDeltasDFA * Merge IAcceleratedStateHandler into IInitialStateHandler * Remove MintermClassifier.IntLookup
- Loading branch information
1 parent
1cab963
commit 2022062
Showing
5 changed files
with
263 additions
and
340 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
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.