Nearly every mapping application will use "data points" that contain latitude and longitude values. So why not use the latitude and longitude values as input into a clusterer rather than spending time creating Google map markers for use as input? The majority of the individual map markers created are never displayed, which is a waste of memory.
In this example, we compare the time required to create "data_point" objects vs creating Google map markers. The example illustrates the performance gain by omitting the need to create Google map markers as input to a clusterer.
Note we do not display any markers on the map, as we are only measuring the time to create them.
- Total data points:
- Time to create data points:
- Time to create Google map markers:
- Difference: