-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Improve concat performance #7824
Merged
Merged
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
github-actions
bot
added
topic-arrays
related to flexible array support
topic-performance
labels
May 7, 2023
for more information, see https://pre-commit.ci
…into improve_concat
for more information, see https://pre-commit.ci
…into improve_concat
dcherian
reviewed
May 18, 2023
Illviljan
commented
May 25, 2023
Illviljan
commented
May 31, 2023
dcherian
reviewed
Jun 1, 2023
dcherian
approved these changes
Jun 1, 2023
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.
LGTM. Thanks @Illviljan Great PR!
19 tasks
dstansby
pushed a commit
to dstansby/xarray
that referenced
this pull request
Jun 28, 2023
* 1. var_idx very slow * 2. slow any * Add test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * 3. Slow array_type called multiple times * 4. Can use fastpath for variable.concat? * 5. slow init of pd.unique * typos * Update concat.py * Update merge.py * 6. Avoid recalculating in loops * 7. No need to transpose 1d arrays. * 8. speed up dask_dataframe * Update dataset.py * Update dataset.py * Update dataset.py * Add dask combine test with many variables * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update combine.py * Update combine.py * Update combine.py * list not needed * dim is usually string, might be faster to check for that * first_var.dims doesn't change and can be defined 1 time * mask bad points rather than append good points * reduce duplicated code * don't think id() is required here. * get dtype directly instead of through result_dtype * seems better to delete rather than append, * use internal fastpath if it's a dataset, values should be fine then * Change isinstance order. * use fastpath if already xarray objtect * Update variable.py * Update dtypes.py * typing fixes * more typing fixes * test undoing as_compatible_data * undo concat_dim_length deletion * Update xarray/core/concat.py * Remove .copy and sum * Update concat.py * Use OrderedSet * Apply suggestions from code review * Update whats-new.rst * Update xarray/core/concat.py * no need to check arrays if cupy isnt even installed * Update whats-new.rst * Add concat comment * minimize diff * revert sketchy --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
plan to merge
Final call for comments
run-benchmark
Run the ASV benchmark workflow
topic-arrays
related to flexible array support
topic-combine
combine/concat/merge
topic-indexing
topic-performance
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.
whats-new.rst