-
Notifications
You must be signed in to change notification settings - Fork 18k
regexp: implement backtracking search #4154
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
Labels
Milestone
Comments
I have been wondering how C++ RE2 could be 13 times faster than Go in the benchmark shootout. Now, I kind of know. C++ is dynamically assessing the cost of the execution and chooses the algo that fits most. Almost like how SQL is executed in a database. I read your papers regarding regexp multiple times last week and read the source of the current "regexp" package. The currently code implements Thompson's algo faithfully. I could not have imagined a better way to improve it. But adding "backtracking" to the assessment will do! I hate to see Go's current regexp is slower than PHP and Python in easy cases. Once "backtracking" is added, more Rubist, Python writer and PHP writer would have one less excuse to switch over. Thanks for your outstanding papers that make me understand regexp more clearly! Please add "backtracking" into the coming releases. Best Regards, GoPro |
@rsc How does your comment on https://golang.org/cl/2153 relate to this issue? |
So I guess the community should work on their own |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
The text was updated successfully, but these errors were encountered: