hulab / ClusterKit

An iOS map clustering framework targeting MapKit, Google Maps and Mapbox.
MIT License
512 stars 86 forks source link

GMSMapView is freezing when call updateClusters with 900+ markers #71

Open Banck opened 5 years ago

Banck commented 5 years ago

Hello! GMMapView is freezing when we have clustered markers with about 900-3k markers and annotations count changes (after zoom, for example). I found the row which is slow: in GMSMapView+ClusterKit.m in method - (void)removeCluster:(CKCluster *)cluster [self.markers removeObjectForKey:cluster]; @maxep Could you please take a look, if you can optimize - it will be so good, because with 900+ markers ClusterKit is impossible to use.