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

未关闭
#482 1 条评论 0 个 reaction 已指派 1 人 已被 @wangela 认领 在 GitHub 查看
triage me type: feature request
主要语言
Python
星标
5k
派生
1.4k
PR 合并指标
30 天内没有已合并 PR

描述

**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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。