You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyGBIF makse makes a new HTTP connection for every request, which has a lot of overhead. It would be much quicker to use the requests module with sessions, so the connection can be reused.
PyGBIF makse makes a new HTTP connection for every request, which has a lot of overhead. It would be much quicker to use the requests module with sessions, so the connection can be reused.
(@mdoering's words via email, CC @juliancabezas)
Looking at the python client code I see it does not reuse connections at all, thus it has to do all the TCP/SSL overhead each time!
https://stackoverflow.com/questions/24873927/python-requests-module-and-connection-reuse
If I use the requests module manually with http sessions it becomes a lot quicker:
It would need a bigger change to the pygbif codebase to support that.
The text was updated successfully, but these errors were encountered: