-
I need to remove multiple nodes from rtree which satisfy a custom predicate for which I am currently doing the following:
This looks inefficient as each rtree node must be visited once for step 1 and then for each identified node, it must again be found in the rtree by the remove method in step 2. Is there a more efficient method which I could employ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes, you're correct. This is inefficient. Currently there is no other way. |
Beta Was this translation helpful? Give feedback.
-
Another problem I encountered with the current In my usage, I add a rtree node for each node in my application's DOM. When one of the DOM node changes, I have to update it in rtree which I am attempting by Would implementing something similar to |
Beta Was this translation helpful? Give feedback.
Yes, you're correct. This is inefficient. Currently there is no other way.