[INV-3771] Speed up maptile caching #3775
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR includes the following proposed change(s):
tr
inthead
Its hard to establish how much the download speed will really improve by for Mobile when using a Simulator. Given the Simulator is constrained by my System the speed is much slower than the below.
Testing in Browser cached 205,587 tiles (2.8GiB) in 33:18.
Originally ~2300 tiles (36.7MiB) would take 2:34. Scaled up that translates to ~3.6 hours
(205k / 2,300) * 154sec / 60 / 60
Testing in a Simulator cached 1,000 tiles in 1:37
Originally 1,000 tiles would take 2:15
I'm not testing for high values because a simulator is more throttled than a physical device so the metrics mean less.
Based on the simulator this completes the same number of tiles in 71.85% of the time.
**During Caching I periodically navigated through the app testing for any noticeable slowdown, If you have the Network tab open you'll get some, due to how many Network requests are being logged, but if you don't, There isn't any..