-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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(rust): Treat splitting by empty string as iterating over chars #15922
fix(rust): Treat splitting by empty string as iterating over chars #15922
Conversation
Can we see if we can support this without allocating a boxed iterator on every row? |
@ritchie46 Sure. I restored the signatures of |
I think it's easier/faster if we modify |
@haocheng6 What you should do is when |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15922 +/- ##
==========================================
- Coverage 81.24% 80.95% -0.29%
==========================================
Files 1382 1384 +2
Lines 176628 178145 +1517
Branches 3032 3043 +11
==========================================
+ Hits 143494 144216 +722
- Misses 32649 33446 +797
+ Partials 485 483 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #15922 will improve performances by 26.19%Comparing Summary
Benchmarks breakdown
|
@haocheng6 Thanks for the PR! |
Changes
This PR fixes the behavior of
str.split
,str.split_exact
andstr.splitn
by treating splitting by an empty string as iterating over chars.Closes #14604