Conversation
Count bottleneck's indices from the first value of each window inside the array directly, so that only the generic path needs to remove the padding. Also fall back from bottleneck for windows larger than the array, apply bottleneck to a first dask chunk that is shorter than the window, and don't name the results of bottleneck after the dask array. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
🚀 Some benchmarks got better. To infinity and beyond!
🚀 better · 🐌 worse · 💥 now failing · 🩹 fixed · 🤷 not comparable Comparing |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Since #11696 and #11900, rolling
argmin/argmaxwith bottleneck spends about a third of its time removing the window padding from the indices, which makes the "Benchmark compare last release" job fail intermittently. bottleneck doesn't pad, so this PR computes its indices relative to the array directly, in the subtraction that already reversed them. Only the generic path still removes the padding.time_rolling_long('argmax', ..., 'bottleneck'): 609/547 µs on main, 457/399 µs in v2026.09.0, 386/333 µs with this PR._trim-<token>.Checklist
whats-new.rstAI Disclosure
Tools: Claude Code (Claude Opus 5.5)
🤖 Generated with Claude Code