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

feat(tree): refactor RangeMap #23353

Merged
merged 10 commits into from
Jan 6, 2025

Conversation

alex-pardes
Copy link
Contributor

@alex-pardes alex-pardes commented Dec 17, 2024

This PR refactors RangeMap

Key Changes

  1. Encapsulated RangeEntry: Removed getFirstEntryFromRangeMap which directly exposed some of the map's internal state. Also removed MemoizedIdRangeAllocator which was the only user of this method.
  2. Improved Documentation: Added comprehensive comments to RangeMap, RangeEntry, RangeQueryResult, and all other methods.
  3. Unified Delete and Set Operations: Removed duplication by allowing undefined values in set, effectively merging delete and set operations.

ADO items

AB#7413, AB#7414

@github-actions github-actions bot added area: dds Issues related to distributed data structures area: dds: tree base: main PRs targeted against main branch labels Dec 17, 2024
@alex-pardes alex-pardes changed the title feat(tree): refactor rangeMap feat(tree): refactor RangeMap Dec 17, 2024
@alex-pardes alex-pardes marked this pull request as ready for review January 6, 2025 18:25
@alex-pardes alex-pardes requested a review from a team as a code owner January 6, 2025 18:25
@alex-pardes alex-pardes enabled auto-merge (squash) January 6, 2025 18:47
@alex-pardes alex-pardes merged commit cef9c25 into microsoft:main Jan 6, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: dds: tree area: dds Issues related to distributed data structures base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants