You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it doesn't explain whether this is a good idea—if I have a million points and want to do bounding box queries, will I be happier using rbush or something less general like a quadtree?
Thanks for the great library!
The text was updated successfully, but these errors were encountered:
Good question! There are not many good JS quadtree implementations out there, but in my experience, RBush with a custom format works great for points and I've used it in many of my other modules (for example, concaveman). If you find any other indexing library perform better, let me know.
One recommendation I have is that if your list of points is static (you don't need to add/remove points after indexing), you should use kdbush, my other indexing library that performs point indexing 5-8x faster than RBush.
The documentation mentions that rbush can be used with points instead of rectangles by specifying custom accessors:
But it doesn't explain whether this is a good idea—if I have a million points and want to do bounding box queries, will I be happier using rbush or something less general like a quadtree?
Thanks for the great library!
The text was updated successfully, but these errors were encountered: