Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
PERF: fastpath on Period construction from PeriodIndex #5155
Comments
This was referenced Oct 8, 2013
|
@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 notifications@github.com wrote:
|
|
revisit after #5148 |
|
Any relevance: pydata#2949? |
|
that's a separate issue...this is a pretty easy fix |
|
Thanks, just wanted to throw it in the mix. I love (conceptually) |
jreback
modified the milestone: 0.15.0, 0.14.0
Apr 25, 2014
jreback
referenced
this issue
Aug 3, 2014
Merged
CLN/INT: remove Index as a sub-class of NDArray #7891
jreback
modified the milestone: 0.15.1, 0.15.0
Aug 3, 2014
|
@nehalecky turns out this was pretty trivial, see #7891
|
jreback commentedOct 8, 2013
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