-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Refactor] Replace recursive Glob.globMatch with iterative approach #12065
Labels
bug
Something isn't working
good first issue
Good for newcomers
Search
Search query, autocomplete ...etc
Comments
I'm currently working on it. |
robinf95
added a commit
to robinf95/OpenSearch
that referenced
this issue
Feb 7, 2024
Signed-off-by: Robin Friedmann <[email protected]>
robinf95
added a commit
to robinf95/OpenSearch
that referenced
this issue
Feb 7, 2024
…ts (opensearch-project#12065) Signed-off-by: Robin Friedmann <[email protected]>
This was referenced Feb 7, 2024
robinf95
added a commit
to robinf95/OpenSearch
that referenced
this issue
Feb 9, 2024
Signed-off-by: Robin Friedmann <[email protected]> Refactored Glob.globMatch by using iterative approach; added unit tests (opensearch-project#12065) Signed-off-by: Robin Friedmann <[email protected]>
robinf95
added a commit
to robinf95/OpenSearch
that referenced
this issue
Feb 9, 2024
Signed-off-by: Robin Friedmann <[email protected]>
@jainankitk will find a new owner to get this PR across the line |
@jainankitk I would volunteer to take on this issue. I fixed a very similar issue here. |
Can I pick this up? |
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
good first issue
Good for newcomers
Search
Search query, autocomplete ...etc
Describe the bug
This issue is related to a recent pull request: #11060
Similar to core's Regex class, there is another internal class called Glob which also uses recursion to evaluate a glob match. This method can also be updated to use an iterative approach.
Additional Context
In #11060, there was a recursive method for evaluating core's own Regex class. The method simpleMatchWithNormalizedString was refactored from a recursive approach to an iterative approach for more predictable space and runtime complexity.
Related component
Search
To Reproduce
Should maintain same behavior as now
Expected behavior
Should maintain same behavior as now
Additional Details
No response
The text was updated successfully, but these errors were encountered: