Performance - websockets 12.0 documentation
Description: Here are tips to optimize performance. uvloop: You can make a websockets application faster by running it with uvloop.(This advice isn’t specific to websockets. It applies to any asyncio applicatio...

Hide navigation sidebar
Hide table of contents sidebar
Back to top
Toggle table of contents sidebar

# Performance

Here are tips to optimize performance.

## uvloop

You can make a websockets application faster by running it with uvloop.

(This advice isn’t specific to websockets. It applies to any `asyncio` application.)

## broadcast

`broadcast()` is the most efficient way to send a message to many clients.