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

Immutable rest #2

Open
wants to merge 2 commits into
base: immutable_inserts
Choose a base branch
from
Open

Immutable rest #2

wants to merge 2 commits into from

Conversation

dustinhiatt-wf
Copy link
Owner

CODE REVIEW

This represents the last of the changes required to use the immutable range tree. It'd be awesome to use a common interface for the mutable and immutable rangetree but I'm not sure if that's really possible without generating a lot of cruft (always returning the tree even when it doesn't matter in the mutable case). I just went ahead and exported the ImmutableRangeTree struct and exposed a public constructor. This also adds the apply method and throws in a test that simultaneously reads and writes to an immutable range tree for some piece of mind. I run that test with the race detector on and haven't noticed any issues.

@tannermiller-wf @beaulyddon-wf @alexandercampbell-wf @ericolson-wf @stevenosborne-wf @rosshendrickson-wf @tylertreat-wf

@alexandercampbell-wk
Copy link

+1

2 similar comments
@beaulyddon-wf
Copy link

+1

@tannermiller-wf
Copy link

+1

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.

4 participants