Specialize Regex codegen for ? (#1898)
We're currently generating the code for a one / not one / set ? quantifier (zero-or-one) as a loop, when it can actually just be a conditional check. This adds a special path for that case. (I've also added another reduction test for alternation, and tweaked the codegen for a successful match to touch fields less.)
Showing
想要评论请 注册 或 登录