Skip to content

Conversation

@lukemanley
Copy link
Member

Micro-perf improvement:

import pandas as pd
import pyarrow as pa

a = pd.ArrowDtype(pa.float64())
b = pd.ArrowDtype(pa.float64())

%timeit a == b

# 2.86 µs ± 214 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)   -> main
# 473 ns ± 15.2 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each) -> PR

@lukemanley lukemanley added Performance Memory or execution speed performance Arrow pyarrow functionality labels Jul 22, 2023
@lukemanley lukemanley added this to the 2.1 milestone Jul 22, 2023
@mroeschke mroeschke merged commit 23a1767 into pandas-dev:main Jul 25, 2023
@mroeschke
Copy link
Member

Thanks @lukemanley

@lukemanley lukemanley deleted the perf-arrowdtype-eq branch July 25, 2023 00:15
jamie-harness pushed a commit to jamie-harness/pandas1 that referenced this pull request Jul 25, 2023
* PERF: ArrowDtype.__eq__

* cleanup
jamie-harness added a commit to jamie-harness/pandas1 that referenced this pull request Jul 25, 2023
* PERF: ArrowDtype.__eq__

* cleanup

Co-authored-by: Luke Manley <[email protected]>
jamie-harness pushed a commit to jamie-harness/pandas1 that referenced this pull request Jul 26, 2023
* PERF: ArrowDtype.__eq__

* cleanup
jamie-harness added a commit to jamie-harness/pandas1 that referenced this pull request Jul 26, 2023
* PERF: ArrowDtype.__eq__

* cleanup

Co-authored-by: Luke Manley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arrow pyarrow functionality Performance Memory or execution speed performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants