googlemaps / googlemaps/google-maps-services-python

maps.static_map() uses return response.iter_content() which does byte-wise chunking which does not give a good performance

Open
#482 1 comment 0 reactions 1 assignee Claimed by @wangela View on GitHub
triage me type: feature request
Dominant language
Python
Stars
5k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
maps.static_map() uses return response.iter_content() which does byte-wise chunking which does not give a good performance

The cause is: iter_content() defaults to chunk size of 1 cf. https://docs.python-requests.org/en/latest/api/#requests.Response.iter_content

**Describe the solution you'd like**
Perhaps chunk_size=None would be better Performance

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.