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

[android] Time to add marker on map hugely increased. #4581

Closed
NazarKacharaba opened this issue Apr 2, 2016 · 3 comments
Closed

[android] Time to add marker on map hugely increased. #4581

NazarKacharaba opened this issue Apr 2, 2016 · 3 comments
Labels
Android Mapbox Maps SDK for Android bug

Comments

@NazarKacharaba
Copy link

In new API(addMarker via MapboxMap), it takes around 100ms to add one marker on map on my nexus 5.
To reproduce:

       for (int i = 0; i < 100; i++) {
         map.addMarker(/*marker here*/);
       }

App will hung up for second or two.

@NazarKacharaba NazarKacharaba changed the title [android] Time to add marker on map hugelly increased. [android] Time to add marker on map hugely increased. Apr 2, 2016
@NazarKacharaba NazarKacharaba reopened this Apr 2, 2016
@tobrun tobrun added bug Android Mapbox Maps SDK for Android labels Apr 2, 2016
@tobrun tobrun modified the milestones: android-v4.0.0, android-v4.1.0 Apr 2, 2016
@tobrun
Copy link
Member

tobrun commented Apr 2, 2016

Thank you for reaching out, #4100 should revert those changes.
I will try to git bisect from previous release and see where the decrease in speed is coming from.

@tobrun
Copy link
Member

tobrun commented Apr 5, 2016

This could be related to #4553 and #4534. Would you be able to verify this be using the latest SNAPSHOT? build instructions can be found in https://www.mapbox.com/android-sdk/#gradle

@tobrun
Copy link
Member

tobrun commented Jun 21, 2016

@Zikil one tip on this topic is to group all of your markers into a List and call addMarkers instead.
Closing as non actionable for now.

@tobrun tobrun closed this as completed Jun 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android bug
Projects
None yet
Development

No branches or pull requests

2 participants