blob: 45e23b2390a3cd427b7c6737059bdb5aad3f4442 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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 :mod:`asyncio`
application.)
.. _uvloop: https://github.com/MagicStack/uvloop
broadcast
---------
:func:`~websockets.broadcast` is the most efficient way to send a message to
many clients.
|