-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF: fastpath on Period construction from PeriodIndex #5155
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
Comments
@jreback did you resolve this already? I might have to deal with this soon anyways, as I'm about to tackle Period and DatetimeIndex fixups. |
nope it works now but does lots of work when u have a long PeriodIndex |
IOW it reinterprets the freq code on every Period construction even when u r passing valid values (but it doesn't know that) |
You should also make sure you're fastpathing asobject (not sure if it matters for PI though) |
not planning in this till 0.14 |
got it On Mon, Oct 14, 2013 at 11:10 PM, jreback [email protected] wrote:
|
revisit after #5148 |
Any relevance: #2949? |
that's a separate issue...this is a pretty easy fix |
Thanks, just wanted to throw it in the mix. I love (conceptually) |
@nehalecky turns out this was pretty trivial, see #7891
|
vbench already in timeseries/period_setitem
very inefficient because on the boxing of the PeriodIndex (to an object index), it recomputes the freq for each Period (even though it is passed), need a fastpath on this type of construction
The text was updated successfully, but these errors were encountered: