PyUtilib / pyutilib

A collection of general Python utilities, including logging and file IO, subprocess management, plugin systems, and workflow management.
BSD 3-Clause "New" or "Revised" License
34 stars 20 forks source link

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

Closed jsiirola closed 4 years ago

jsiirola commented 4 years ago

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:

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 commented 4 years ago

Coverage Status

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