Open
Description
The clusterer uses an array of markers:
js-markerclusterer/src/markerclusterer.ts
Line 33 in 9476b3a
This is inefficient has the lib often scans the whole list (and by definition the list is big when you use the clusterer):
js-markerclusterer/src/markerclusterer.ts
Lines 104 to 106 in 9476b3a
js-markerclusterer/src/markerclusterer.ts
Line 125 in 9476b3a
switching to a Set
would be much more efficient.
I could volunteer that code if using a Set
is ok with the targeted list of supported browsers - let me know