Skip to content

PERF: increase the minimum number of elements to use numexpr for ops from 1e4 to 1e6 #40502

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

Conversation

jorisvandenbossche
Copy link
Member

See #40500 for the analysis.

@jorisvandenbossche jorisvandenbossche added Performance Memory or execution speed performance Numeric Operations Arithmetic, Comparison, and Logical operations labels Mar 18, 2021
@jorisvandenbossche jorisvandenbossche changed the title PERF: increase the minimum number of elements to use numexpr for ops from 1e4 to 1e5 PERF: increase the minimum number of elements to use numexpr for ops from 1e4 to 1e6 Mar 19, 2021
@jreback
Copy link
Contributor

jreback commented Mar 19, 2021

prob need to update the docs a bit here https://pandas.pydata.org/docs/user_guide/enhancingperf.html

@jorisvandenbossche
Copy link
Member Author

prob need to update the docs a bit here https://pandas.pydata.org/docs/user_guide/enhancingperf.html

That page is about using numexpr in eval/query, so that is independent from this change. On the basic page is a section about accelerated ops: https://pandas.pydata.org/docs/user_guide/basics.html?highlight=numexpr#accelerated-operations
But it doesn't mention the minimum number of items, so that doesn't need to be updated (we should update the table id at some point switching to the ArrayManager, as that will be influenced, but so that's still for the future)

Copy link
Member

@jbrockmendel jbrockmendel left a comment

Choose a reason for hiding this comment

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

LGTM pending green

@jreback jreback added this to the 1.3 milestone Mar 20, 2021
@jreback jreback merged commit bd8c79f into pandas-dev:master Mar 20, 2021
@jbrockmendel
Copy link
Member

Looks like this wasnt green when merged, could be responsible for broken CI?

jbrockmendel added a commit that referenced this pull request Mar 20, 2021
rhshadrach pushed a commit that referenced this pull request Mar 20, 2021
@jorisvandenbossche jorisvandenbossche deleted the ops-perf-numexpr-min-elements branch March 24, 2021 08:28
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Numeric Operations Arithmetic, Comparison, and Logical operations Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants