-
Notifications
You must be signed in to change notification settings - Fork 140
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
'import pkg_resources' is slow and impacts cold starts #305
Comments
Thanks for bringing this to our attention, @prestomation ! I was able to reproduce the slow behavior of Let me know if you have any additional questions or comments! |
Hey @NathanielRN do we have some rough dates on when the next release will be out? It's been a couple of months since the last release. It'd be awesome to have this Perf improvement out for customers |
Thanks for the prompt @heitorlessa ! I'll message the team and see if they can cut us a release soon. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in next 7 days. Thank you for your contributions. |
This should have been released in be4dea2 as version |
There are two locations in the code base that use
from pkg_resources import resource_filename
to get the location of some packaged, static json data.During some profiling of a ~1.5gb python3.8 lambda function, I discovered that this import alone takes on the order of 250ms and is one of the larger single contributors of cold start in my sample function.
Could we consider some other method for consuming this data?
The text was updated successfully, but these errors were encountered: