You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Symbolic/MintermClassifier.cs
+3-4
Original file line number
Diff line number
Diff line change
@@ -47,9 +47,8 @@ public MintermClassifier(BDD[] minterms)
47
47
return;
48
48
}
49
49
50
-
// low memory compromise is to create an ascii-only array
50
+
// ascii-only array to save memory
51
51
// int mintermId = c >= 128 ? 0 : mtlookup[c];
52
-
// and only exists because the wasm tests fail with OOM
Copy file name to clipboardexpand all lines: src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Symbolic/RegexNodeConverter.cs
Copy file name to clipboardexpand all lines: src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Symbolic/SymbolicRegexMatcher.cs
Copy file name to clipboardexpand all lines: src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Symbolic/SymbolicRegexThresholds.cs
+2-2
Original file line number
Diff line number
Diff line change
@@ -26,14 +26,14 @@ internal static class SymbolicRegexThresholds
26
26
/// this should be a very last resort action, going from DFA mode to NFA mode turns 500MB/s to 5MB/s
27
27
/// with an entirely different search-time algorithmic complexity
28
28
/// 100_000 isn't a really a high memory cost either,
29
-
/// i'd even put 1_000_000 on the table but that might push it for general purpose use
29
+
/// ideally NFA mode should never be used, 1_000_000 is ok as well but it depends how much memory the user has
30
30
/// </remarks>
31
31
internalconstintNfaThreshold=100_000;
32
32
33
33
/// <summary>
34
34
/// Default maximum estimated safe expansion size of a <see cref="SymbolicRegexNode{TSet}"/> AST
35
35
/// after the AST has been anlayzed for safe handling.
36
-
/// TODO: this is perhaps too conservative, consider raising this
36
+
/// TODO: this is perhaps too conservative, consider raising this, 5000 is ok even in safety critical scenarios, ~50 000 for general purpose is ok too
37
37
/// <remarks>
38
38
/// If the AST exceeds this threshold then <see cref="NotSupportedException"/> is thrown.
39
39
/// This default value may be overridden with the AppContext data
0 commit comments