Skip to content

PERF: Index.insert #43953

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 5 commits into from
Oct 10, 2021
Merged

PERF: Index.insert #43953

merged 5 commits into from
Oct 10, 2021

Conversation

jbrockmendel
Copy link
Member

import pandas as pd

idx = pd.Index([4, 5, 6])

%timeit idx.insert(1, 19)
26.7 µs ± 299 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)  # <- master
15.5 µs ± 185 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)  # <- PR

@jreback jreback added this to the 1.4 milestone Oct 10, 2021
@jreback jreback added the Performance Memory or execution speed performance label Oct 10, 2021
@jreback
Copy link
Contributor

jreback commented Oct 10, 2021

some tests failing

@jreback jreback merged commit c021d33 into pandas-dev:master Oct 10, 2021
@jbrockmendel jbrockmendel deleted the perf-index-insert branch October 10, 2021 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants