Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
CLN/PERF: remove used functions; use C skip list for rolling median #11450
Conversation
jreback
added Performance Reshaping
labels
Oct 28, 2015
jreback
added this to the
0.17.1
milestone
Oct 28, 2015
jreback
commented on an outdated diff
Oct 28, 2015
| @@ -58,7 +58,7 @@ Performance Improvements | ||
| - Release the GIL on most datetime field operations (e.g. ``DatetimeIndex.year``, ``Series.dt.year``), normalization, and conversion to and from ``Period``, ``DatetimeIndex.to_period`` and ``PeriodIndex.to_timestamp`` (:issue:`11263`) | ||
| - | ||
| +- ``rolling_median`` uses c skip list implementation |
|
|
jreback
commented on the diff
Oct 28, 2015
| } | ||
| static void node_destroy(node_t *node) { | ||
| int i; | ||
| if (node) { | ||
| - if (node->ref_count == 1) { | ||
| + if (node->ref_count <= 1) { |
kawochen
Contributor
|
|
you may be able to insert |
|
|
can you add an asv benchmark? not sure we have much for rolling in general...... |
jreback
commented on an outdated diff
Oct 30, 2015
| @@ -59,7 +59,7 @@ Performance Improvements | ||
| - Release the GIL on most datetime field operations (e.g. ``DatetimeIndex.year``, ``Series.dt.year``), normalization, and conversion to and from ``Period``, ``DatetimeIndex.to_period`` and ``PeriodIndex.to_timestamp`` (:issue:`11263`) | ||
| - | ||
| +- ``rolling_median`` uses c skip list implementation (:issue:`11450`) | ||
|
|
|
OK. might as well release the GIL on roll_* |
|
yep - same or another |
|
Added asv benchmarks for the gil release. But I can't get any of those to show in asv bench at all. Have I written the tests incorrectly? A simple
branch
master
for
master
the |
jreback
added a commit
that referenced
this pull request
Nov 2, 2015
|
|
jreback |
eb66bcc
|
jreback
merged commit eb66bcc
into pandas-dev:master
Nov 2, 2015
1 check passed
|
thanks! |
kawochen commentedOct 28, 2015
removes some unused code
reverts this commit a40226e
performance consideration
master
branch