MissionPlanner icon indicating copy to clipboard operation
MissionPlanner copied to clipboard

FlightPlanner : tweak prefetch, Resolves #2591, resolves #2483

Open Godeffroy opened this issue 1 year ago • 5 comments
trafficstars

When prefetching, do not download tile if file already exist Add minZoom input in prefetch (like maxZoom) image

Use Parallel.For instead of For to get tiles faster !

Using original for loop to download world from zoom 5 to 1 : image Middle of land at zoom 12 to 10 : image

Using Parallel.For loop to download world from zoom 5 to 1 : image Middle of land at zoom 12 to 10 : image

Godeffroy avatar Apr 03 '24 15:04 Godeffroy

there is a potential issue here and that's with googles TOS 300 QPM (requests per minute) per IP address.

the check for existing file is all ok. its just the parallel for that's the problem

meee1 avatar Apr 04 '24 00:04 meee1

I understand the potential issue, but without modification, we can already get more than 300 tiles per minutes : image

I think in the TOS, the limit is 30 000 ? image

I could limit the parallelism with the option MaxDegreeOfParallelism = 4 ?

Godeffroy avatar Apr 04 '24 13:04 Godeffroy

I removed the parallel for (and also rebased on master).

Godeffroy avatar Apr 09 '24 08:04 Godeffroy

whitespace.

meee1 avatar May 16 '24 06:05 meee1

whitespace fixed and rebased on master

Godeffroy avatar Jun 10 '24 14:06 Godeffroy