Skip to main content

COMPRESSED_MIN_BYTES

Constant COMPRESSED_MIN_BYTES 

Source
const COMPRESSED_MIN_BYTES: usize = _ /* 65_536usize */;
Expand description

The JSON bytes at which a frame crosses compressed, for a connection that declared the capability.

A frame under it is byte-identical to what the socket has always carried. The threshold is where the write stops being cheap: a 2 KB frame gains nothing from a gzip header, and a multi-MB snapshot is the case this exists for.