Skip to content

PERF: calling get_indexer twice when a specialized indexer (e.g. pad) could be called instead #5178

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

Merged
merged 1 commit into from
Oct 10, 2013

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Oct 10, 2013

better on reindexing

Invoked with :
--ncalls: 3
--repeats: 3


-------------------------------------------------------------------------------
Test name                                    | head[ms] | base[ms] |  ratio   |
-------------------------------------------------------------------------------
frame_reindex_upcast                         |  12.3383 |  12.7693 |   0.9662 |
frame_reindex_both_axes                      |  36.2797 |  36.2826 |   0.9999 |
frame_reindex_both_axes_ix                   |  34.7884 |  34.7476 |   1.0012 |
frame_reindex_axis1                          | 555.0433 | 553.5540 |   1.0027 |
frame_reindex_axis0                          |  87.8770 |  82.8171 |   1.0611 |
reindex_fillna_pad                           |   0.6303 |   0.5744 |   1.0974 |
reindex_frame_level_align                    |   0.6430 |   0.5836 |   1.1017 |
reindex_fillna_backfill                      |   0.6286 |   0.5697 |   1.1035 |
reindex_frame_level_reindex                  |   0.5973 |   0.5407 |   1.1048 |
reindex_fillna_pad_float32                   |   0.5320 |   0.4800 |   1.1083 |
reindex_fillna_backfill_float32              |   0.5307 |   0.4773 |   1.1119 |
dataframe_reindex                            |   0.4213 |   0.3650 |   1.1541 |
frame_reindex_columns                        |   0.3730 |   0.3120 |   1.1954 |
reindex_multiindex                           |   1.4537 |   1.1006 |   1.3208 |
reindex_daterange_pad                        |   1.2333 |   0.6417 |   1.9221 |
reindex_daterange_backfill                   |   1.2383 |   0.6430 |   1.9258 |
-------------------------------------------------------------------------------
Test name                                    | head[ms] | base[ms] |  ratio   |
-------------------------------------------------------------------------------

Ratio < 1.0 means the target commit is faster then the baseline.
Seed used: 1234

Target [661adc5] : PERF: calling get_indexer twice when a specialized indexer (e.g. pad) could be called instead
Base   [8c0a34f] : RLS: set released to True, edit release dates

@jreback jreback mentioned this pull request Oct 10, 2013
13 tasks
jreback added a commit that referenced this pull request Oct 10, 2013
PERF: calling get_indexer twice when a specialized indexer (e.g. pad) could be called instead
@jreback jreback merged commit e3632f8 into pandas-dev:master Oct 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant