mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-10 17:53:17 +00:00
Add recommendations to installations instruction.
This commit is contained in:
parent
e0e058e943
commit
05399ecaa1
2 changed files with 30 additions and 0 deletions
|
|
@ -14,3 +14,31 @@ From sources
|
|||
$ git clone https://github.com/aiogram/aiogram.git
|
||||
$ cd aiogram
|
||||
$ python setup.py install
|
||||
|
||||
|
||||
Recommendations
|
||||
---------------
|
||||
You can speedup your bots by following next instructions:
|
||||
|
||||
- Use `uvloop <https://github.com/MagicStack/uvloop>`_ instead of default asyncio loop.
|
||||
|
||||
*uvloop* is a fast, drop-in replacement of the built-in asyncio event loop. uvloop is implemented in Cython and uses libuv under the hood.
|
||||
|
||||
**Installation:**
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ pip install uvloop
|
||||
|
||||
|
||||
- Use `ujson <https://github.com/esnme/ultrajson>`_ instead of default json module.
|
||||
|
||||
*UltraJSON* is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 2.5+ and 3.
|
||||
|
||||
**Installation:**
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ pip install ujson
|
||||
|
||||
In addition, you don't need do nothing, *aiogram* is automatically starts using that if is found in your environment.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue