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
[OptionsResolver] optimize splitOutsideParenthesis with regex (5.88x faster)
Replace manual string parsing with regex-based implementation using PCRE's
(*SKIP)(*FAIL) backtracking control verbs. This approach:
Achieves 5.88x performance improvement over the original implementation
The regex pattern '\([^()]*(?:\([^()]*\)[^()]*)*\)(*SKIP)(*FAIL)|\|' works by:
1. Matching parentheses and their contents (including nested parentheses)
2. Using (*SKIP)(*FAIL) to skip these matches entirely
3. Then splitting on the remaining pipe characters outside parentheses
0 commit comments