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

Speed up import type (0.05 s to 0.02 s) by lazy loading requests #328

Merged
merged 6 commits into from
Oct 3, 2023

Conversation

hmaarrfk
Copy link
Contributor

I'm proposing lazy loading requests since it adds a bit of import of.

Usually, I think that pooch is used as an import addon but not as a core feature. As such it is a little silly to expand the import time by alot. While small, it is not insignificant.

Thank you for considering

Current
image

Proposed
image

@leouieda
Copy link
Member

@hmaarrfk sorry for the long delay on this. I've been away from OSS work for a while and am only slowly returning now. We'll get to this PR as soon as possible. Thanks for going thought the trouble and being patient 🙂

@leouieda
Copy link
Member

@hmaarrfk will merge this ASAP. We're having a failure on the Mac builds for Python 3.7 because the GitHub setup-python action is trying to compile Python and failing to link to libbz2...

@hmaarrfk
Copy link
Contributor Author

No issues. Take your time.

@leouieda leouieda merged commit ddebf17 into fatiando:main Oct 3, 2023
27 checks passed
@leouieda
Copy link
Member

leouieda commented Oct 3, 2023

Thanks @hmaarrfk! Finally got some time to sort this out. Thank you your help!

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