-
-
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
perf: Ensure we hit specialized gather for binary/strings #15886
Conversation
@@ -23,7 +23,7 @@ impl Add for &StringChunked { | |||
type Output = StringChunked; | |||
|
|||
fn add(self, rhs: Self) -> Self::Output { | |||
unsafe { (self.as_binary() + rhs.as_binary()).to_string() } | |||
unsafe { (self.as_binary() + rhs.as_binary()).to_string_unchecked() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drive by. Make clear that we don't check on conversion.
CodSpeed Performance ReportMerging #15886 will improve performances by 20.77%Comparing Summary
Benchmarks breakdown
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15886 +/- ##
==========================================
- Coverage 81.33% 81.32% -0.02%
==========================================
Files 1385 1385
Lines 177003 177014 +11
Branches 3033 3033
==========================================
- Hits 143971 143952 -19
- Misses 32547 32577 +30
Partials 485 485
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Gather by slices accidentally hit the generic gather. This is very expensive for binary/string views as all buffers get naively added.
#15847