gluonhq / maps

https://gluonhq.com/labs/maps/
GNU General Public License v3.0
140 stars 36 forks source link

Reduce the number of threads #11

Closed jperedadnr closed 6 years ago

jperedadnr commented 6 years ago

Currently, each tile that has to be downloaded spawns a new thread.

An Executor with a fixed thread pool should be used instead. Considering that OpenStreetView allows 2 simultaneous requests from the same IP, the maximum number of threads should be 2.