This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
unnecessary performance overhead for non-view annotations on iOS #5787
Labels
annotations
Annotations on iOS and macOS or markers on Android
bug
iOS
Mapbox Maps SDK for iOS
performance
Speed, stability, CPU usage, memory usage, or power usage
Milestone
Looking separately into the perf issues mentioned in #5786, it seems that
-[MGLMapView updateAnnotationViews]
is called as a result of-[MGLMapView notifyMapChange]
. This appears to run through every annotation on every frame update, doing unnecessary logic for annotations which are sprite-backed. In my testing of an entirely sprite-backed map, I am getting about 16% of time profiling spent on rendering the whole map and the same amount just to run through-[MGLMapView convertCoordinate:toPointToView:]
when this is completely unnecessary for thousands of annotations./cc @1ec5 @boundsj
The text was updated successfully, but these errors were encountered: