-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set order='F' when raveling group_idx after broadcast (#286)
* Set order='F' when raveling group_idx after broadcast This majorly improves the dim=... case for engine="flox" at least. xref #281 I'm not sure if it is a regression for engine="numpy" We trade off a single bad reshape for array against argsorting both array and group_idx for a ~10-20x speedup ``` ds = xr.tutorial.load_dataset('air_temperature') ds.groupby('lon').count(..., engine="flox") ``` * This is an improvement only for engine=flox * Update tests * Fix benchmark * type ignore
- Loading branch information
Showing
3 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
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
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
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