Skip to content

Skip request-body compression for small payloads #934

Closed

Description

@vdusek

The Python API client compresses every request body regardless of size (see #927). For small payloads the compression overhead isn't worth it.

The JS client skips compression when the body is below 1024 B. We should align the Python client with that behavior and only compress bodies at or above the threshold.

Context: #927 (comment)

Activity

  1. added
    enhancementNew feature or request.
    pythonPull requests that update Python code
    on Jul 9, 2026
  2. added
    t-toolingIssues with this label are in the ownership of the tooling team.
    on Jul 9, 2026
  3. added
    debtCode quality improvement or decrease of technical debt.
    and removed
    enhancementNew feature or request.
    pythonPull requests that update Python code
    on Jul 9, 2026
  4. Pijukatel commented on Jul 9, 2026

    @Pijukatel
    Contributor

    Maybe it is also a good time to think (make some benchmarks) whether it should be done the other way around and turn it on in JS for all payloads as well.

  5. self-assigned this
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

debtCode quality improvement or decrease of technical debt.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions