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

Clean up and slightly optimize TraceCtx::python() #1181

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

apaz-cli
Copy link
Collaborator

No description provided.

@apaz-cli
Copy link
Collaborator Author

apaz-cli commented Sep 20, 2024

Context: We're working on litgpt container startup times. We have a lot of traces, and spend a solid 10 seconds building callables from them. This PR is unlikely to make much of a difference in that, but it's the obvious low hanging fruit.

It's slow not because of one particular function, but because of the python interpreter. It's just a lot of python code. And there's not much that can be done about it because of the GIL.

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.

1 participant