Skip to content

PERF: normalize_i8_timestamps #34672

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
Jun 9, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

xref #34507

Based on the asv mentioned in that thread:

In [3]: N = 10**5                                                                                                                                                                                              
In [4]: tz = "UTC"                                                              
In [5]: series = Series(date_range(start="1/1/2000", periods=N, freq="T", tz=tz))

In [6]: %timeit series.dt.normalize()                                                                                                                                                                          
947 µs ± 4.33 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)   # <-- PR
3.26 ms ± 43.8 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)   # <-- master

@jreback jreback added Performance Memory or execution speed performance Datetime Datetime data dtype labels Jun 9, 2020
@jreback jreback added this to the 1.1 milestone Jun 9, 2020
@jreback jreback merged commit 6010141 into pandas-dev:master Jun 9, 2020
@jbrockmendel jbrockmendel deleted the perf-simd branch June 9, 2020 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants