Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

MGLOfflineStorage addPackForRegion gets slower and slower depending on the number of tiles already in DB #15567

Closed
pappalar opened this issue Sep 5, 2019 · 4 comments
Labels
archived Archived because of inactivity iOS Mapbox Maps SDK for iOS offline performance Speed, stability, CPU usage, memory usage, or power usage

Comments

@pappalar
Copy link

pappalar commented Sep 5, 2019

addPackForRegion becomes extremely slow after some packs have been added to the Database.

It takes different seconds before the completion handler is called.
Is this intended?

Shouldn't the pack be added immediately and the calcualtion of the progress done asynchronous?

it seems from outside that the DB is running over ALL the tiles already in DB and this is extremely slow.

similar to #15297

Configuration

Mapbox SDK versions: 5.2.0

@chloekraw
Copy link
Contributor

@racer1988, I think your issue could be resolved by #15521. I’d test with the latest alpha and see if you can reproduce this.

@chloekraw chloekraw added iOS Mapbox Maps SDK for iOS offline performance Speed, stability, CPU usage, memory usage, or power usage labels Sep 5, 2019
@pappalar
Copy link
Author

pappalar commented Sep 5, 2019

Thanks!
@chloekraw I will test this soon, however I can see that the first load is still impacted by a huge time hit.

If my user choose a region far away and ask me to download it (i take all zoom levels) then the method will still be in the same ~ amount of time right?

@stale stale bot added the archived Archived because of inactivity label Mar 3, 2020
@stale
Copy link

stale bot commented Mar 3, 2020

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Mar 3, 2020
@chloekraw chloekraw reopened this Mar 5, 2020
@stale stale bot removed the archived Archived because of inactivity label Mar 5, 2020
@stale stale bot added the archived Archived because of inactivity label Sep 2, 2020
@stale
Copy link

stale bot commented Sep 2, 2020

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Sep 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity iOS Mapbox Maps SDK for iOS offline performance Speed, stability, CPU usage, memory usage, or power usage
Projects
None yet
Development

No branches or pull requests

2 participants