Skip to content

Conversation

nossrannug
Copy link

Messages smaller than 1024 bytes are no longer compressed even when compression is enabled. This optimization avoids the overhead of compression for small messages where the compression ratio would be minimal or potentially increase the message size.

The threshold is set to 1024 bytes (matching UNCOMPRESSED_MIN_BODY_SIZE used in tests). Messages below this threshold are sent uncompressed with the compression flag unset in the gRPC header.

Messages smaller than 1024 bytes are no longer compressed even when
compression is enabled. This optimization avoids the overhead of
compression for small messages where the compression ratio would be
minimal or potentially increase the message size.

The threshold is set to 1024 bytes (matching UNCOMPRESSED_MIN_BODY_SIZE
used in tests). Messages below this threshold are sent uncompressed
with the compression flag unset in the gRPC header.
@nossrannug nossrannug force-pushed the conditional-stream-compression branch from 76a268b to 449c7cc Compare August 26, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant