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
Label: Changed regexp.go file and added a single test case 'ſſs' #14086
base: main
Are you sure you want to change the base?
Label: Changed regexp.go file and added a single test case 'ſſs' #14086
Conversation
Signed-off-by: Kushal Shukla <kushalshukla110@gmail.com> Signed-off-by: kushagra Shukla <kushalshukla110@gmail.com>
pls review it @colega . and let me know if i can make some more optimization . |
As I mentioned in my comment this looks like the least performant way to implement this, and I'd guess that it can be even slower than running the original regular expression before optimization. I would run some benchmarks to see the performance impact of looping here. |
Here is the impact of the loop
I think we should look for another way to match the case. the performance impact is substantial |
will look at this code again |
Fixes #14066
Added a test case "ſſs" and changed Regexp.go file , such that all the test case will pass.