nadako / TinkStateSharp

Handle those pesky states, now in C#
https://nadako.github.io/TinkStateSharp/
The Unlicense
43 stars 1 forks source link

Avoid copying observers array when firing. #2

Closed nadako closed 1 year ago

nadako commented 1 year ago

Instead use a temporary modifications array in those rare cases where we actually need to handle it.

codecov-commenter commented 1 year ago

Codecov Report

Base: 97.80% // Head: 97.79% // Decreases project coverage by -0.01% :warning:

Coverage data is based on head (c93eae4) compared to base (5c37d0c). Patch coverage: 97.95% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2 +/- ## ========================================== - Coverage 97.80% 97.79% -0.02% ========================================== Files 19 19 Lines 821 862 +41 ========================================== + Hits 803 843 +40 - Misses 18 19 +1 ``` | [Impacted Files](https://codecov.io/gh/nadako/TinkStateSharp/pull/2?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Dan+Korostelev) | Coverage Δ | | |---|---|---| | [src/TinkState/Runtime/Internal/Dispatcher.cs](https://codecov.io/gh/nadako/TinkStateSharp/pull/2/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Dan+Korostelev#diff-c3JjL1RpbmtTdGF0ZS9SdW50aW1lL0ludGVybmFsL0Rpc3BhdGNoZXIuY3M=) | `98.61% <97.95%> (-1.39%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Dan+Korostelev). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Dan+Korostelev)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.