box-intersect
box-intersect copied to clipboard
advice on efficient usage with highly dynamic boxes?
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.