dwavesystems / dwavesystems/dwave-cloud-client

Add config parameter to control if compression is accepted in API responses

Open
#422 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Python
Stars
63
Forks
44
Avg merge
13h 45m
Merged PRs (30d)
1

Description

On fast networks, it's preferable to turn compression off with `Accept-Encoding: identity` header on all requests to SAPI.

Accepting `gzip` encoding (current default) will slow-down encoding/transmission on SAPI side, and slow down the overall download by factor of 2 to 5. This is most prominent during "solver definition fetch" while selecting solver by features, because then we must download definitions of all solvers (order of MiB).

On slow networks, it's better to leave the server-side compression.

Note: this can already be done through `DWAVE_API_HEADERS` env var and `headers` config option/kwarg, but the exact HTTP header has to be specified.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.