fix: fix core reliability, concurrency, and performance issues by roshhellwett · Pull Request #1795 · python-zeroconf/python-zeroconf
and others added 2 commits
- Pin Cython to 3.2.5 in pyproject.toml to resolve native build failures. - Resolve syntax error in _logger.py module docstring. - Optimize ServiceRegistry by migrating server and type storage from lists to dicts, enabling O(1) removals and preventing CPU spikes under load. - Harden RecordManager by utilizing set.discard() to avoid KeyError crashes during asynchronous listener removal. - Fix python-zeroconf#1780: Stop in-place mutation of cached DNSRecord TTLs to prevent shared state corruption across event loop listeners. - Update tests to accommodate cache architectural changes and resolve iterator mutations.
roshhellwett
changed the title
Fix core reliability, concurrency, and performance issues
fix: fix core reliability, concurrency, and performance issues
- Add type hints using cast to resolve mypy typing issues in test modules - Ensure 100% codecov branch coverage by ignoring unreachable fallback paths - Fix code formatting and imports flagged by pre-commit tools - Update auto-generated setup.py to ignore flake8/ruff formatting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters