Use the fastest installed zlib compatible library with aiohttp
Project description
aiohttp-fast-zlib
Source Code: https://github.com/bdraco/aiohttp-fast-zlib
Use the fastest installed zlib compatible library with aiohttp
zlib is be a bottleneck for aiohttp, especially for websocket connections. aiohttp-fast-zlib
replaces usage of zlib
in aiohttp
with isal
or zlib-ng
which is a drop-in faster replacement in most cases. Be sure to read the isal documentation and the zlib-ng documentation.
Installation
Install this via pip (or your favourite package manager):
pip install aiohttp-zlib-fast[isal]
pip install aiohttp-zlib-fast[zlib-ng]
Usage
Enable isal or zlib-ng support in aiohttp by calling enable
import aiohttp_zlib_fast
# isal is preferred over zlib_ng if it is available
aiohttp_zlib_fast.enable()
aiohttp_zlib_fast.enable()
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Credits
This package was created with Copier and the browniebroke/pypackage-template project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for aiohttp_fast_zlib-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc50b873befaf473f2fdee1c4bdf06b7a24ab30538c6534f367ab77e8d41512c |
|
MD5 | bb676eed4ca6dc8124a3c0f55c07a745 |
|
BLAKE2b-256 | f91a6102591a5941206ccb4c210477fffb2d3740045d4fad1355758ffb9dac92 |