Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up remove by about 50% #18

Merged
merged 1 commit into from
Nov 25, 2013
Merged

Speed up remove by about 50% #18

merged 1 commit into from
Nov 25, 2013

Conversation

twpayne
Copy link
Contributor

@twpayne twpayne commented Nov 25, 2013

A node's bbox is the union of its children's bboxes. When searching for a node with a specific extent, the node can only be in children who's bboxes strictly contain the node's extent. We can therefore replace the intersection test with a stricter contains test. This improves the speed of remove by about 50%.

…o remove

A node's bbox is the union of its children's bboxes.  When searching for
a node with a specific extent, the node can only be in children who's
bboxes strictly contain the node's extent.  We can therefore replace the
intersection test with a stricter contains test.  This improves the
speed of remove by about 50%.
mourner added a commit that referenced this pull request Nov 25, 2013
@mourner mourner merged commit 6054e83 into mourner:master Nov 25, 2013
@mourner
Copy link
Owner

mourner commented Nov 25, 2013

Awesome, thanks Tom!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants