Use a Set of markers instead of an array #627
Labels
triage me
I really want to be triaged.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
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 knowThe text was updated successfully, but these errors were encountered: