dwavesystems / dwave-cloud-client

A minimal implementation of the REST interface used to communicate with D-Wave Solver API (SAPI) servers.
https://docs.ocean.dwavesys.com/projects/cloud-client/en/stable/
Apache License 2.0
59 stars 40 forks source link

Speed up imports #643

Closed randomir closed 4 months ago

randomir commented 4 months ago

Top-level namespace import is 20x faster; api and config imports around 30% faster; dwave.cloud.Client as before.

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 87.17949% with 5 lines in your changes missing coverage. Please review.

Project coverage is 88.56%. Comparing base (7ea8531) to head (3d4b73c). Report is 109 commits behind head on master.

Files with missing lines Patch % Lines
dwave/cloud/__init__.py 91.30% 2 Missing :warning:
dwave/cloud/api/client.py 85.71% 1 Missing :warning:
dwave/cloud/api/resources.py 75.00% 1 Missing :warning:
dwave/cloud/auth/flows.py 66.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #643 +/- ## ========================================== - Coverage 88.61% 88.56% -0.06% ========================================== Files 42 42 Lines 4586 4608 +22 ========================================== + Hits 4064 4081 +17 - Misses 522 527 +5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.