Add aiohttp speedups

Add aiohttp[speedups] in instalation recomendations
Includes cchardet and aiodns.
This commit is contained in:
eboshare 2019-10-15 18:00:37 +04:00
parent 2843a66e61
commit 2ed98e566e

View file

@ -62,4 +62,36 @@ You can speedup your bots by following next instructions:
$ pip install ujson
- Use aiohttp speedups
- Use `cchardet <https://github.com/PyYoshi/cChardet>`_ instead of chardet module.
*cChardet* is high speed universal character encoding detector.
**Installation:**
.. code-block:: bash
$ pip install cchardet
- Use `aiodns <https://github.com/saghul/aiodns>`_ for speeding up DNS resolving.
*aiodns* provides a simple way for doing asynchronous DNS resolutions.
**Installation:**
.. code-block:: bash
$ pip install aiodns
- Installing speedups altogether.
The following will get you ``aiohttp`` along with ``cchardet,``, ``aiodns`` and ``brotlipy`` in one bundle.
**Installation:**
.. code-block:: bash
$ pip install aiohttp[speedups]
In addition, you don't need do nothing, *aiogram* is automatically starts using that if is found in your environment.