Skip to content
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

⚡ Remove inspect.stack() for performance #67

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

joerunde
Copy link
Contributor

@joerunde joerunde commented Jan 4, 2023

Not gonna lie I don't fully understand what's going on inside of inspect.stack() to make it so much slower than iterating through sys._getframe() but here we are.

This takes a partial import of a library that makes heavy use of abc.ABC from 650s back down to 4s.

Copy link
Collaborator

@gabe-l-hart gabe-l-hart left a comment

Choose a reason for hiding this comment

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

Very nice! ⚡

@gabe-l-hart gabe-l-hart merged commit ce53551 into IBM:main Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants