Skip to content

PERF: IntervalArray.from_tuples #50620

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 3 commits into from
Jan 7, 2023

Conversation

lukemanley
Copy link
Member

from asv_bench.benchmarks.array import IntervalArray

b = IntervalArray()
b.setup()

%timeit b.time_from_tuples()

22.7 ms ± 1.35 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)  -> main
3.32 ms ± 268 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)  -> PR

@lukemanley lukemanley added Performance Memory or execution speed performance Interval Interval data type labels Jan 7, 2023
Copy link
Member

@phofl phofl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@phofl phofl merged commit 01cbaea into pandas-dev:main Jan 7, 2023
@phofl
Copy link
Member

phofl commented Jan 7, 2023

thx @lukemanley

@lukemanley lukemanley deleted the interval-array-from-tuples branch January 19, 2023 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Interval Interval data type Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants