Skip to content

PERF: RangeIndex.insert #43988

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 12, 2021
Merged

Conversation

jbrockmendel
Copy link
Member

index = pd.Index(range(2))

%timeit index.insert(2, 2)
48.4 µs ± 2.03 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)  # <- master
2.54 µs ± 70.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)  # <- PR

@jbrockmendel jbrockmendel added the Performance Memory or execution speed performance label Oct 11, 2021
@jreback jreback added this to the 1.4 milestone Oct 12, 2021
@jreback jreback merged commit ed21210 into pandas-dev:master Oct 12, 2021
@jbrockmendel jbrockmendel deleted the perf-index-insert-2 branch October 12, 2021 19:45
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