Optimize padding for coarsening.#10921
Merged
dcherian merged 3 commits intopydata:mainfrom Nov 14, 2025
Merged
Conversation
Pad once instead of repeatedly in serial for every dimension being coarsened. ``` | Before [6a7a11b] <main> | After [873f7ce6] | Ratio | Benchmark (Parameter) | |----------------------------|------------------|---------|----------------------------------------------| | 856M | 727M | 0.85 | coarsen.Coarsen.peakmem_coarsen_with_padding | | 59.7±1ms | 49.9±0.4ms | 0.84 | coarsen.Coarsen.time_coarsen_with_padding | | 729M | 597M | 0.82 | coarsen.Coarsen.peakmem_coarsen_no_padding | | 55.2±0.4ms | 39.5±0.1ms | 0.71 | coarsen.Coarsen.time_coarsen_no_padding | ``` Co-authored-by: Claude <noreply@anthropic.com>
19 tasks
TomNicholas
approved these changes
Nov 14, 2025
shoyer
pushed a commit
to shoyer/xarray
that referenced
this pull request
Nov 19, 2025
Co-authored-by: Claude <noreply@anthropic.com>
shoyer
added a commit
that referenced
this pull request
Nov 20, 2025
* support combine_nested on DataTree objects * make mypy happy * Rewrite test_iso8601_decode to work without cftime (#10914) * Rewrite test_iso8601_decode to work without cftime Closes #10907 Co-Authored-By: Claude <noreply@anthropic.com> * silence warning --------- Co-authored-by: Claude <noreply@anthropic.com> * DOC: Correct minor grammar issues (#10915) * skip ci based on a label (#10918) * skip ci based on a label * retrigger ci * Optimize padding for coarsening. (#10921) Co-authored-by: Claude <noreply@anthropic.com> * release v2025.11.0 (#10917) * choose the right version number * formatting * move a breaking change entry to the right section * remove the deprecations section * missing entry * remove the empty internals section * another missing entry * more missing entries * remove empty line * bad merge * remove the empty documentation section * newline * use the old style of setting release dates * set the release date * formatting * back to bold * release summary * new release section (#10926) * new release section * [skip-ci] * update whats-new * removed redundant whatsnew --------- Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Christine P. Chai <star1327p@gmail.com> Co-authored-by: Justus Magin <keewis@users.noreply.github.com>
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.
Disclaimer Used Claude to generate the benchmark
Pad once instead of repeatedly in serial for every dimension being coarsened.
whats-new.rstapi.rst