Skip to content

PERF: find_stack_level #45247

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
Jan 7, 2022

Conversation

lithomas1
Copy link
Member

@lithomas1 lithomas1 commented Jan 7, 2022

Some low hanging fruit in find_stack_level.
pytest pandas/tests/groupby/test_function.py -v -k "test_builtins_apply" goes from 35 -> 6 secs for me.
Someone may want to verify. Also IDK how to benchmark this.

@jbrockmendel Would you like to test this locally to verify the perf gains?

@lithomas1 lithomas1 marked this pull request as ready for review January 7, 2022 15:06
@lithomas1 lithomas1 requested a review from jbrockmendel January 7, 2022 15:06
@jbrockmendel
Copy link
Member

Would you like to test this locally to verify the perf gains?

I'm happy to take your word for it.

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

@jbrockmendel
Copy link
Member

@mroeschke good here?

@mroeschke mroeschke added the Performance Memory or execution speed performance label Jan 7, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jan 7, 2022
@jbrockmendel jbrockmendel merged commit 69f4ccf into pandas-dev:master Jan 7, 2022
@jbrockmendel
Copy link
Member

thanks @lithomas1

@jreback
Copy link
Contributor

jreback commented Jan 7, 2022

wouldn't object to backport ing this

@lithomas1
Copy link
Member Author

@meeseeksdev backport 1.4.x

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Apr 27, 2022
jreback pushed a commit that referenced this pull request Apr 27, 2022
@lithomas1 lithomas1 modified the milestones: 1.5, 1.4.3 Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PERF: find_stack_level
4 participants