boostorg / boostorg/beast

zlib-ng for websocket permessage-deflate?

Open
#3,014 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
4.8k
Forks
694
Avg merge
12h 48m
Merged PRs (30d)
1

Description

In a prior issue, [I was asking about using a system zlib](https://github.com/boostorg/beast/issues/2921), or boost::iostreams when the motivating example was CVE tracking.

I'm working on a piece of code now that consumes a really large amount of compressed websocket messages, and spends a large amount of run time decompressing them in beast's zlib implementation according to `perf`.

This piece of code is performance sensitive, and I'd like to try using [zlib-ng](https://github.com/zlib-ng/zlib-ng) or [Cloudflare's fork](https://github.com/cloudflare/zlib) to see about speeding that up.

Is there any way to make a websocket connect with permessage deflate and then let the user supply the implementation?

Contributor guide

Open the contributing guide

Research direction

The issue names no source files, tests, or entry points; start by locating Beast's WebSocket permessage-deflate and zlib integration. Compare how a user could supply zlib-ng or Cloudflare's fork, and consider the work done when a supported connection path and its verification are clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.