From 2ed98e566eda4fca57d592ef719424eb2f6bb0aa Mon Sep 17 00:00:00 2001 From: eboshare Date: Tue, 15 Oct 2019 18:00:37 +0400 Subject: [PATCH] Add aiohttp speedups Add aiohttp[speedups] in instalation recomendations Includes cchardet and aiodns. --- docs/source/install.rst | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/source/install.rst b/docs/source/install.rst index d8d591c1..8d59f2c8 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -62,4 +62,36 @@ You can speedup your bots by following next instructions: $ pip install ujson +- Use aiohttp speedups + + - Use `cchardet `_ instead of chardet module. + + *cChardet* is high speed universal character encoding detector. + + **Installation:** + + .. code-block:: bash + + $ pip install cchardet + + - Use `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.