mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Merge pull request #219 from eboshare/dev-2.x
Add aiohttp speedups in installation recommendations
This commit is contained in:
commit
eca75dd734
1 changed files with 32 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue