Merge pull request #219 from eboshare/dev-2.x

Add aiohttp speedups in installation recommendations
This commit is contained in:
Alex Root Junior 2019-10-18 12:14:08 +03:00 committed by GitHub
commit eca75dd734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.