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

Move serializer out of write lock #194

Open
ayjayt opened this issue Feb 6, 2025 · 0 comments
Open

Move serializer out of write lock #194

ayjayt opened this issue Feb 6, 2025 · 0 comments
Labels
feature something new performance something is slow

Comments

@ayjayt
Copy link
Collaborator

ayjayt commented Feb 6, 2025

Right now, the brokers/broker_async, which is the async interface to the sync packages like channels/pipe.py and channels/_wire.py... broker calls write_json() behind a lock. write_json serializes AND writes to pipe. But serializing is concurrency safe and could somehow be moved out of the lock to make things faster.

@ayjayt ayjayt added feature something new performance something is slow labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new performance something is slow
Projects
None yet
Development

No branches or pull requests

1 participant