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

Short-circuit event dispatch #660

Closed randomir closed 2 months ago

randomir commented 2 months ago

100 us -> 3 us for function calls that dispatch events, in the nominal case when no event handlers are registered. Currently we only register event handlers in dwave-inspector.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.89%. Comparing base (5597ff0) to head (b684ac9). Report is 4 commits behind head on master.

Files Patch % Lines
dwave/cloud/events.py 90.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #660 +/- ## ========================================== - Coverage 88.91% 88.89% -0.03% ========================================== Files 42 42 Lines 4810 4817 +7 ========================================== + Hits 4277 4282 +5 - Misses 533 535 +2 ```

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