Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up websocket and ingress with aiohttp-zlib-ng #103247

Merged
merged 3 commits into from
Nov 2, 2023
Merged

Commits on Nov 2, 2023

  1. Speed up websocket and ingress with aiohttp-zlib-ng

    https://github.com/bdraco/aiohttp-zlib-ng
    https://github.com/pycompression/python-zlib-ng
    
    zlib-ng was choosen because:
    
    - Its at the point where cloudflare is using it in production
    - Its a drop-in replacement for zlib with no code changes needed
    - Fedora is talking about making it the default zlib implementation https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/CDNPJ4SOTRQMYVCDI3ZSY4SP4FYESCWD/
    - well maintained https://github.com/zlib-ng/zlib-ng/releases
    - It has significant performance improvements over stock zlib https://www.phoronix.com/news/Zlib-ng-2.1-Beta
    
    Other alternatives (https://bugs.python.org/issue41566) where not choosen because:
    
    python-isal: https://github.com/pycompression/python-isal: not widely
    compatible, not a drop-in replacement
    libdeflate: no stream implementation, not a drop-in replacement
    bdraco committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    cdbf391 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a4acaa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f940e83 View commit details
    Browse the repository at this point in the history