Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cythonize _listener.py to improve incoming message processing performance #1220

Merged
merged 5 commits into from Aug 14, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Aug 14, 2023

No pxd file yet. This will be the next PR. Doing this in small steps

@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.11% ⚠️

Comparison is base (12560a7) 99.81% compared to head (10ae1cb) 99.71%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1220      +/-   ##
==========================================
- Coverage   99.81%   99.71%   -0.11%     
==========================================
  Files          23       25       +2     
  Lines        2776     2787      +11     
  Branches      480      480              
==========================================
+ Hits         2771     2779       +8     
- Misses          3        5       +2     
- Partials        2        3       +1     
Files Changed Coverage Δ
src/zeroconf/_core.py 100.00% <100.00%> (ø)
src/zeroconf/_engine.py 100.00% <100.00%> (ø)
src/zeroconf/_listener.py 100.00% <100.00%> (ø)
src/zeroconf/_transport.py 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco changed the title feat: cythonize _engine.py to improve performance feat: cythonize _engine.py to improve incoming message processing performance Aug 14, 2023
@bdraco
Copy link
Member Author

bdraco commented Aug 14, 2023

Looks like I need to move the listener into a separate file since we still have a problem with old pypy + cython + coros

@bdraco bdraco marked this pull request as draft August 14, 2023 16:32
@bdraco bdraco changed the title feat: cythonize _engine.py to improve incoming message processing performance feat: cythonize _listener.py to improve incoming message processing performance Aug 14, 2023
@bdraco bdraco marked this pull request as ready for review August 14, 2023 16:59
@bdraco
Copy link
Member Author

bdraco commented Aug 14, 2023

The split solved the coro + cython issue

@bdraco bdraco merged commit 9efde8c into master Aug 14, 2023
33 of 34 checks passed
@bdraco bdraco deleted the basic_cython_engine branch August 14, 2023 17:02
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.

None yet

1 participant