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

R-tree improvements. #639

Merged
merged 5 commits into from
Jan 24, 2020
Merged

Conversation

awulkiew
Copy link
Member

@awulkiew awulkiew commented Nov 12, 2019

  • improve readability/maintainability of the code by replacing lists of types in visitors with one type of MembersHolder and getting all needed types from it.
  • improve exception safety by removing exceeding element if there are too many elements in a node after exception is thrown in split, so even if a user chooses to try to insert something into the rtree, even though the state of the rtree is not valid the new element won't be put out of bounds which now would result in assert or segfault. (I consider it a bug).

If exception is thrown in split prevent keeping more elements in a node
that it is allowed. So even if a user calls insert() again there won't
be a problem with pushing elements out of bounds in the same node which
is already overflowed.
@awulkiew awulkiew changed the title Some rtree improvements. R-tree improvements. Nov 12, 2019
@awulkiew awulkiew added this to the 1.73 milestone Nov 12, 2019
@awulkiew awulkiew added the bug label Nov 12, 2019
Copy link
Member

@vissarion vissarion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I am ok with merging!

@awulkiew awulkiew merged commit 2bcfea2 into boostorg:develop Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants