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

Implement NavigableMap with O(1) snapshots #87

Open
rovarga opened this issue Mar 31, 2022 · 0 comments
Open

Implement NavigableMap with O(1) snapshots #87

rovarga opened this issue Mar 31, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@rovarga
Copy link
Collaborator

rovarga commented Mar 31, 2022

The TrieMap is an implementation of a Ctrie. This means its iteration order is defined in terms of hashCode() of keys of stored mappings -- essentially an equivalent of a ConcurrentHashMap.

Explore the possibility of implementing a ConcurrentMap + NavigableMap with O(1) snapshots. This should follow the same internal organization as TrieMap has. One notable difference is the need to pass around Comparators and using them to locate and organize the entries. For the equivalent of CNode, we should be able to use a suitably-sized array sorted using Arrays.sort().

@rovarga rovarga added the enhancement New feature or request label Mar 31, 2022
@rovarga rovarga pinned this issue Feb 13, 2023
@rovarga rovarga unpinned this issue Apr 13, 2023
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