googlemaps / google-maps-services-python

Python client library for Google Maps API Web Services
Apache License 2.0
4.5k stars 1.3k forks source link

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

Open DerGuteWolf opened 1 year ago

DerGuteWolf commented 1 year ago

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

wangela commented 1 year ago

If you would like to upvote the priority of this issue, please comment below or react with :+1: so we can see what is popular when we triage.

@DerGuteWolf Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.