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
RE2 is faster than ICU (used by NSRegularExpression) for most types of expression at both matching and compiling.
It would possibly be prudent to benchmark some example regexes that are likely to be used in Santa (generally short input text, not recompiled regularly, lots of use of OR) before implementing but given the benchmarks already done I think it very unlikely ICU will come out ahead on average.
For implementation: I think a very simple ObjC wrapper around RE2 would make switching and memory management easier. It would also limit the exposure to Objective-C++ to just that wrapper class, which is nice.
The biggest issue is getting RE2 into the build process: the other dependencies are installed with CocoaPods and a Pod for RE2 is not available.
The text was updated successfully, but these errors were encountered:
This isn't going to happen, negative-lookahead is too useful to give up. There are alternatives using prefix trees with negative policies but regexes will continue to be supported and so we cannot lose this useful ability.
RE2 is faster than ICU (used by NSRegularExpression) for most types of expression at both matching and compiling.
It would possibly be prudent to benchmark some example regexes that are likely to be used in Santa (generally short input text, not recompiled regularly, lots of use of OR) before implementing but given the benchmarks already done I think it very unlikely ICU will come out ahead on average.
For implementation: I think a very simple ObjC wrapper around RE2 would make switching and memory management easier. It would also limit the exposure to Objective-C++ to just that wrapper class, which is nice.
The biggest issue is getting RE2 into the build process: the other dependencies are installed with CocoaPods and a Pod for RE2 is not available.
The text was updated successfully, but these errors were encountered: