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

Additional use of deferred imports to speed up pyutilib import #87

Merged
merged 1 commit into from
Mar 17, 2020

Conversation

jsiirola
Copy link
Contributor

Fixes: #N/A

Summary/Motivation:

This makes additional use of deferred imports to avoid importing dependencies until the point where the dependencies are actually needed. This helps speed up the import of pyutilib, and by extension, dependent projects.

Changes proposed in this PR:

  • defer the import of ConfigParser and yaml modules

Legal Acknowledgement

By contributing to this software project, I agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 61.08% when pulling 6e1e74f on jsiirola:deferred-imports into e6c1913 on PyUtilib:master.

@jsiirola jsiirola merged commit 0fd5f24 into PyUtilib:master Mar 17, 2020
@jsiirola jsiirola deleted the deferred-imports branch March 18, 2020 03:44
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.

3 participants