Download Latest Version v20.75.0 source code.tar.gz (294.4 kB)
Email in envelope

Get an email when there's a new version of µWebSockets

Home / v20.73.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-02-20 858 Bytes
v20.73.0 source code.tar.gz 2025-02-20 291.1 kB
v20.73.0 source code.zip 2025-02-20 350.1 kB
Totals: 3 Items   642.1 kB 0

libdeflate as inflation ("decompression") fast path

Resurrecting support of libdeflate, now specifically only for inflation and only as a fast path to zlib.

WITH_LIBDEFLATE=1 make

builds examples using this fast path (you need to build the submodule first). Improved load_test.c benchmark can now highlight inflation cost:

For me and my particular test system:

  • With dynamically linked zlib - 110k msg/sec inflated and echoed 300 byte JSON messages
  • With statically linked zlib-cloudflare - 130k
  • With libdeflate as fast path - 180k
  • Without any inflation - 320k

Note: WITH_DEFLATE is only compatible with uWS::SHARED_DECOMPRESSOR!

Inflation performance for 300 byte JSON (msg_sec echoed) (1)

Source: README.md, updated 2025-02-20