Skip to content

Conversation

lithomas1
Copy link
Contributor

@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
Contributor 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