Bluetooth-Devices / dbus-fast

A faster version of dbus-next
MIT License
35 stars 8 forks source link

feat: reduce overhead to reset between messages #245

Closed bdraco closed 12 months ago

bdraco commented 12 months ago

We flip a lot of vars back but we are just going to overwrite them anyways so there is no need to do it twice

codecov[bot] commented 12 months ago

Codecov Report

Patch coverage: 50.00% and project coverage change: +0.15% :tada:

Comparison is base (370791d) 83.35% compared to head (9991148) 83.50%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #245 +/- ## ========================================== + Coverage 83.35% 83.50% +0.15% ========================================== Files 28 28 Lines 3262 3256 -6 Branches 675 676 +1 ========================================== Hits 2719 2719 + Misses 329 325 -4 + Partials 214 212 -2 ``` | [Files Changed](https://app.codecov.io/gh/Bluetooth-Devices/dbus-fast/pull/245?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices) | Coverage Δ | | |---|---|---| | [src/dbus\_fast/\_\_version\_\_.py](https://app.codecov.io/gh/Bluetooth-Devices/dbus-fast/pull/245?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices#diff-c3JjL2RidXNfZmFzdC9fX3ZlcnNpb25fXy5weQ==) | `0.00% <0.00%> (ø)` | | | [src/dbus\_fast/\_private/unmarshaller.py](https://app.codecov.io/gh/Bluetooth-Devices/dbus-fast/pull/245?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices#diff-c3JjL2RidXNfZmFzdC9fcHJpdmF0ZS91bm1hcnNoYWxsZXIucHk=) | `94.95% <60.00%> (-0.31%)` | :arrow_down: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/Bluetooth-Devices/dbus-fast/pull/245/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices)

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