You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
Before, deleting an offline pack and clearing the ambient cache would automatically trigger the SQLite VACUUM operation (in mbgl's packDatabase()) to erase the resources from disk and free up space. This operation is computationally expensive and would block the main thread, sometimes also causing the app to hang or crash.
mapbox/mapbox-gl-native#15899 decouples VACUUM from those APIs and mapbox/mapbox-gl-native#15967 adds a new API, runPackDatabaseAutomatically(bool) , which allows the developer configure whether packDatabase() is run automatically with deleteRegion() and clearAmbientCache(). By default, the value is true, enabling this change to be backwards compatible.
With mapbox/mapbox-gl-native#15899 and mapbox/mapbox-gl-native#15967, we optimized the offline region deletion and ambient cache clearing APIs in GL-Native.
Before, deleting an offline pack and clearing the ambient cache would automatically trigger the SQLite VACUUM operation (in mbgl's
packDatabase()
) to erase the resources from disk and free up space. This operation is computationally expensive and would block the main thread, sometimes also causing the app to hang or crash.mapbox/mapbox-gl-native#15899 decouples VACUUM from those APIs and mapbox/mapbox-gl-native#15967 adds a new API,
runPackDatabaseAutomatically(bool)
, which allows the developer configure whetherpackDatabase()
is run automatically withdeleteRegion()
andclearAmbientCache()
. By default, the value is true, enabling this change to be backwards compatible.cc/ @mapbox/maps-ios @1ec5 @pozdnyakov
The text was updated successfully, but these errors were encountered: