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 摘要。