Skip to content

feat: small speed up to handler dispatch#1140

Merged
bdraco merged 3 commits intomasterfrom
handler_dispatch
Apr 1, 2023
Merged

feat: small speed up to handler dispatch#1140
bdraco merged 3 commits intomasterfrom
handler_dispatch

Conversation

@bdraco
Copy link
Copy Markdown
Member

@bdraco bdraco commented Apr 1, 2023

We were making a copy of the handler list every time a change was fired. We can use a view instead to avoid the list changed during iteration problem until we can refactor to only change the handler list in the event loop.

We were making a copy of the handler list every time
a change was fired. We can use a view instead to avoid
the list changed during iteration problem until we can
refactor to only change the handler list in the event loop.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 1, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (7246a34) 99.76% compared to head (82266c7) 99.76%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1140   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files          22       22           
  Lines        2603     2603           
  Branches      456      456           
=======================================
  Hits         2597     2597           
  Misses          4        4           
  Partials        2        2           
Impacted Files Coverage Δ
src/zeroconf/_services/__init__.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bdraco bdraco marked this pull request as ready for review April 1, 2023 02:14
@bdraco bdraco merged commit 5bd1b6e into master Apr 1, 2023
@bdraco bdraco deleted the handler_dispatch branch April 1, 2023 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants