New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialects: Deprecate as many RegexParsers as we can #3390
Comments
Can you explain what you mean by hash matching? Is this something in the |
i just mean the simple() matching route in the BaseSegment |
I might be able to have a go at this while I try and unpick the remnants of #3692. I think they're related. |
To make progress on this my suggestion builds on #3819. The introduction of
Given those constraints I think we need to break one of them. That boils down to making
I think the latter is much more viable. I don't think I can see a way to performantly do the first one. More specifically I'm suggesting:
The second pathway should run at the same order of magnitude speed as the first one, and only needs to run at all if some of our options need to use it. Very specifically I'm thinking that:
@WittierDinosaur - I think you've put the most thought into this so far. What do you think of this as a path forward? |
Search before asking
Description
RegexParser doesn't support a hash matching - making it far less performant than its StringParser equivalent. In an ideal world everything would be direct from the Lexer, but if that can't be, StringParser is better. I doubt that we can remove every instance of this, but the more we remove, the better.
Use case
No response
Dialect
All
Are you willing to work on and submit a PR to address the issue?
Code of Conduct
The text was updated successfully, but these errors were encountered: