Skip to content

Commit

Permalink
Remove MintermClassifier.IntLookup
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub committed Jul 12, 2024
1 parent 9f61425 commit 4e760f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ public int GetMintermID(int c)
/// </summary>
public byte[]? ByteLookup => _lookup;

/// <summary>
/// Gets a mapping from char to minterm for the rare case when there are &gt;= 255 minterms.
/// Null in the common case where there are fewer than 255 minterms.
/// </summary>
public int[]? IntLookup => _intLookup;

/// <summary>
/// Maximum ordinal character for a non-0 minterm, used to conserve memory
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public SymbolicMatch FindMatch(RegexRunnerMode mode, ReadOnlySpan<char> input, i

// The Z anchor and over 255 minterms are rare enough to consider them separate edge cases.
int matchEnd;
if (!_containsEndZAnchor && _mintermClassifier.IntLookup is null)
if (!_containsEndZAnchor && _mintermClassifier.ByteLookup is not null)
{
// Optimize processing for the common case of no Z anchor and <= 255 minterms. Specialize each call with different generic method arguments.
matchEnd = (_findOpts is not null, _containsAnyAnchor) switch
Expand Down

0 comments on commit 4e760f1

Please sign in to comment.