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

Đang mở
#482 1 bình luận 0 reaction 1 người được giao Được @wangela nhận Xem trên GitHub
triage me type: feature request
Ngôn ngữ chính
Python
Star
5k
Fork
1.4k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.