Skip to content

PERF: DatetimeIndex.union #42353

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
Jul 4, 2021

Conversation

jbrockmendel
Copy link
Member

In [2]: dti = pd.date_range('2016-01-01', periods=10**5, freq="s")

In [3]: dti2 = dti.delete(50000)

In [4]: %timeit dti.union(dti2)
1.77 ms ± 7.97 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)  # <- master
1.55 ms ± 9.29 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)  # <- PR

@jreback jreback added Performance Memory or execution speed performance Index Related to the Index class or subclasses labels Jul 4, 2021
@jreback jreback added this to the 1.4 milestone Jul 4, 2021
@jreback jreback merged commit 1c7693b into pandas-dev:master Jul 4, 2021
@jbrockmendel jbrockmendel deleted the perf-dti-union-slow branch July 4, 2021 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Index Related to the Index class or subclasses Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants