box-intersect icon indicating copy to clipboard operation
box-intersect copied to clipboard

advice on efficient usage with highly dynamic boxes?

Open mreinstein opened this issue 8 years ago • 0 comments

I'd love to use this module for spatial partitioning in a simulation I'm working on.

@mikolalysenko One challenge in my case is many boxes are created/destroyed at simulation time, and the api accepts a fixed list of boxes.

I worry inserting/splicing many array items will create a lot of memory gc pressure.

Would it be better to keep a fixed list of boxes, and just set some to empty? This would effectively be a pool I suppose.

mreinstein avatar Oct 30 '17 13:10 mreinstein