-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improve concat performance #7824
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
Merged
Merged
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
670d970
1. var_idx very slow
Illviljan 1370a0e
2. slow any
Illviljan 8ab83fa
Add test
Illviljan b6e1881
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 487e958
3. Slow array_type called multiple times
Illviljan fbb5430
4. Can use fastpath for variable.concat?
Illviljan e6fe2c4
Merge branch 'improve_concat' of https://github.com/Illviljan/xarray …
Illviljan dc5f0e6
5. slow init of pd.unique
Illviljan 38aa169
typos
Illviljan 5fd6bcb
Update concat.py
Illviljan 43dcff2
Update merge.py
Illviljan 7ef0e5d
6. Avoid recalculating in loops
Illviljan b2c067d
7. No need to transpose 1d arrays.
Illviljan 914481b
Merge branch 'main' into improve_concat
Illviljan ad048b6
8. speed up dask_dataframe
Illviljan d609883
Update dataset.py
Illviljan 4005f6f
Update dataset.py
Illviljan d23c833
Update dataset.py
Illviljan 6c6b5c7
Add dask combine test with many variables
Illviljan 068ba55
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 1bb9dd5
Merge branch 'main' into improve_concat
Illviljan 6828fb6
Merge branch 'improve_concat' of https://github.com/Illviljan/xarray …
Illviljan 5670331
Update combine.py
Illviljan b11afe8
Update combine.py
Illviljan e1938a8
Update combine.py
Illviljan 43fd7a2
list not needed
Illviljan a59635b
dim is usually string, might be faster to check for that
Illviljan 70be8c9
first_var.dims doesn't change and can be defined 1 time
Illviljan 68a0c08
mask bad points rather than append good points
Illviljan 2ebf78a
reduce duplicated code
Illviljan dd81325
don't think id() is required here.
Illviljan 8805ab1
Merge branch 'main' into improve_concat
Illviljan 8d3d152
get dtype directly instead of through result_dtype
Illviljan 476b1e0
seems better to delete rather than append,
Illviljan 674638a
use internal fastpath if it's a dataset, values should be fine then
Illviljan 05206f8
Change isinstance order.
Illviljan e0dae6d
use fastpath if already xarray objtect
Illviljan 9cc6c2d
Update variable.py
Illviljan f03154c
Update dtypes.py
Illviljan 529e386
typing fixes
Illviljan b7492ca
more typing fixes
Illviljan cf51f16
test undoing as_compatible_data
Illviljan 4b6a4c6
undo concat_dim_length deletion
Illviljan 2cd984d
Update xarray/core/concat.py
Illviljan 86eb72a
Remove .copy and sum
Illviljan b2a498a
Merge branch 'main' into improve_concat
Illviljan ee2c3f6
Update concat.py
Illviljan 4092d1b
Merge branch 'main' into improve_concat
Illviljan 1e514f6
Use OrderedSet
Illviljan 59bf15b
Merge branch 'main' into improve_concat
Illviljan b4198a3
Merge branch 'main' into improve_concat
Illviljan 0d0b76e
Apply suggestions from code review
Illviljan 51768bd
Merge branch 'main' into improve_concat
Illviljan 15e2783
Update whats-new.rst
Illviljan 6f86e98
Update xarray/core/concat.py
Illviljan db25a0b
no need to check arrays if cupy isnt even installed
Illviljan da959a8
Merge branch 'main' into improve_concat
Illviljan 629cdea
Update whats-new.rst
Illviljan cfaa866
Add concat comment
Illviljan fe62336
minimize diff
Illviljan 4e90504
revert sketchy
Illviljan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.