tejado / pgoapi

Pokemon Go API lib
Other
1.4k stars 445 forks source link

Reuse requests.session #90

Open nborrmann opened 8 years ago

nborrmann commented 8 years ago

The API should reuse one session object, this has significant performance benefits, because all requests will reuse the same connection.

At the moment, the session is initialized in RpcApi() constructor. However, each request initializes a new RpcApi. This needs to be refactored somehow.

tejado commented 8 years ago

Good point, I will take care of this.