mourner / kdbush

A fast static index for 2D points
ISC License
638 stars 69 forks source link

[Feature Request] Import from /Export to Array Buffer, like Flatbush #31

Closed hydrosquall closed 1 year ago

hydrosquall commented 4 years ago

Hi,

Thanks for the work on this very helpful library!

I landed here from a comment in the companion library, which has methods that support serializing the index to disk (via the data property on an index instance), and loading that serialized result back conveniently (via Flatbush.from). It would be really convenient to have those same methods available for this library too.

https://github.com/mourner/flatbush/issues/19#issuecomment-429104887

mourner commented 4 years ago

Yes, I'd like to bring it on par with Flatbush in this regard — will hopefully take on this in the next few weeks!