-
Notifications
You must be signed in to change notification settings - Fork 902
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
Fix bug in replace_with_backrefs when group has greedy quantifier #8575
Merged
rapids-bot
merged 4 commits into
rapidsai:branch-21.08
from
davidwendt:bug-replace-backrefs
Jun 25, 2021
Merged
Fix bug in replace_with_backrefs when group has greedy quantifier #8575
rapids-bot
merged 4 commits into
rapidsai:branch-21.08
from
davidwendt:bug-replace-backrefs
Jun 25, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
davidwendt
added
bug
Something isn't working
3 - Ready for Review
Ready for review by team
libcudf
Affects libcudf (C++/CUDA) code.
non-breaking
Non-breaking change
labels
Jun 21, 2021
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #8575 +/- ##
===============================================
Coverage ? 83.01%
===============================================
Files ? 109
Lines ? 18225
Branches ? 0
===============================================
Hits ? 15129
Misses ? 3096
Partials ? 0 Continue to review full report at Codecov.
|
This was referenced Jun 23, 2021
rgsl888prabhu
approved these changes
Jun 23, 2021
mythrocks
approved these changes
Jun 23, 2021
@gpucibot merge |
rapids-bot bot
pushed a commit
that referenced
this pull request
Oct 13, 2021
) This is a less ambitious version of #8460 which had to be reverted in #8575 because it did not work with greedy quantifiers. The change here involves calling the underlying `reprog_device::extract` to retrieve each group result within a single kernel rather than launching a kernel for each group. The output is placed contiguously in a 2d span (wrapped uvector) and a permutation iterator is used to build the output columns (one column per group). Like it's predecessor, the performance improvement is mostly when specifying more than 1 group in the regex pattern. The benchmark results showed no change for single groups but was 2x faster for multiple groups over long (8K) strings and up to 4x faster for multiple groups over many (16M) strings. The benchmark test for extract was also updated to better report the number of groups being used when measuring results. Authors: - David Wendt (https://github.com/davidwendt) Approvers: - Mark Harris (https://github.com/harrism) - Nghia Truong (https://github.com/ttnghia) URL: #9358
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3 - Ready for Review
Ready for review by team
bug
Something isn't working
libcudf
Affects libcudf (C++/CUDA) code.
non-breaking
Non-breaking change
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #8569
This essentially undoes the performance improvement made in #8460 since the logic mishandles a greedy quantifier pattern when it occurs inside an extract group. The internal regex logic is only able to track a single extract group when such a quantifier is specified.
This PR does improve the interface for the internal extract call and adds some gtests for this issue.