mapbox/supercluster

Performance: store internal data in flat numeric arrays

Closed this issue · 1 comments

Currently a lot of Supercluster's memory overhead comes from storing internal data for each input point and generated cluster as an array of objects. In theory, since most of that data is numeric, we could instead store all that data in flat numeric arrays referenced by indices where possible.

Fixed by #223.