traveltime-dev / traveltime-python-sdk

TravelTime SDK for Python programming language
https://docs.traveltime.com/
MIT License
20 stars 5 forks source link

Figure out why python sdk performance drops with decreasing of DEFAULT_SPLIT_SIZE #70

Open danielnaumau opened 1 year ago

danielnaumau commented 1 year ago

It looks like python sdk has internal rpm limits cause it slows down quite much when DEFAULT_SPLIT_SIZE is changed.

DEFAULT_SPLIT_SIZE = 1 Average response time: 235s for 500 isochrones

DEFAULT_SPLIT_SIZE = 10 Average response time: 51s for 500 isochrones

danielnaumau commented 1 year ago

https://medium.com/@mkaanerkoc/how-to-send-bulk-http-requests-with-aiohttp-asyncio-in-python-62aee008e057

danielnaumau commented 1 year ago

It would be great to add a section in readme which explains why it happens and add some examples how to send parallel requests with python sdk.