-
-
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
[PERFORMANCE]: isin
on CFTimeIndex
-backed Coordinate
slow
#6230
Comments
Yes, I think replacing this with something like |
Oh, I guess the challenge is that |
Are we still removing |
In the long term (cc @benbovy) I think we would ideally split
|
Is your feature request related to a problem?
I want to do
coord1.isin.coord2
and it is quite slow when coords are large and of object typeCFTimeIndex
.Describe the solution you'd like
faster
coord1.isin.coord2
by default. could we re-route here, e.g. to the alternative?conversion from
coordinate
to_index()
is costly I guessDescribe alternatives you've considered
np.isin(coord1.to_index().asi8, coord2.to_index().asi8
brings me nice speedups in pangeo-data/climpred#724Additional context
unsure whether this issue should go here on in
cftime
The text was updated successfully, but these errors were encountered: