-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
PERF/CLN: Improve datetime-like index ops perf #10277
Conversation
ohh nice! do we have sufficient benches for this? |
Updated top description. It is harder to notice in small size of |
yes I would add a vbench for this. btw, I think its actually useful to use
on a NO nan series that would be a big win (assume that this is not the first operation, e.g. it obviously needs caching). here's another thing. I think you can actually do a lot of this not in the constructor but in certain operations e.g. if you construct from a So it can still be lazy but in some cases you can set it a-priori w/o actually doing the check. |
@jreback Exactly! As a first step, added
I assume it means adding new property to
|
@sinhrks yep, exactly. For instance, |
status? |
@sinhrks status? |
I couldn't undertake to add an attribute which indicates `NaN`` possibility. Because this is PR improve a perf somewhat, can I do it separately? |
I think this needs to wait for |
Correct, will finish #11343 first. |
@sinhrks I belive we can put this in now? move whatsnew note to 0.18.0 |
66a378c
to
7b7652f
Compare
@sinhrks status? |
@jreback Rebased, and ready for review. I misunderstood about |
thanks! |
PERF/CLN: Improve datetime-like index ops perf
Add
_isnan
toDatetimeIndexOpsMixin
to cacheNaT
mask.This leads to some perf improvement which is noticeable in larger data.
after fix
before fix: