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

Fix slow sapi requests due to logging #659

Closed randomir closed 1 month ago

randomir commented 1 month ago

Fix #658.

get_caller_name() is 200x faster than inspect.stack()[1].function. See InspectStack.* asv benchmarks on CI.


A single-qubit QPU problem submit is now much faster (thanks to upload compression) then it was with the old cloud-client (0.9.2 in this example):

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.87%. Comparing base (fc49d0f) to head (94c926a). Report is 4 commits behind head on master.

Files Patch % Lines
dwave/cloud/client/base.py 83.33% 1 Missing :warning:
dwave/cloud/utils/logging.py 90.90% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #659 +/- ## ========================================== - Coverage 88.89% 88.87% -0.02% ========================================== Files 42 42 Lines 4799 4810 +11 ========================================== + Hits 4266 4275 +9 - Misses 533 535 +2 ```

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