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

Support multiple SkipMaps share the same Arena #47

Closed
al8n opened this issue Nov 4, 2024 · 1 comment
Closed

Support multiple SkipMaps share the same Arena #47

al8n opened this issue Nov 4, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@al8n
Copy link
Owner

al8n commented Nov 4, 2024

This feature is a must-have to help upper-level crates implement range-deletions and range-sets.

With this feature, we can have a memtable like this:

struct Memtable {
  skiplist: SkipMap<[u8], [u8]>,
  range_deletions: SkipMap<[u8], ()>,
  range_sets: SkipMap<[u8], [u8]>,
}

In the above struct, skiplist, range_deletions and range_sets, they are separate SkipMap but share the same Arena.

@al8n al8n added this to the 0.20 milestone Nov 4, 2024
@al8n al8n added the enhancement New feature or request label Nov 4, 2024
@al8n
Copy link
Owner Author

al8n commented Nov 12, 2024

Finished in #48.

@al8n al8n closed this as completed Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant