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

Use a persistent vector implementation in NamingContext #2

Open
phipsgabler opened this issue Nov 2, 2018 · 0 comments
Open

Use a persistent vector implementation in NamingContext #2

phipsgabler opened this issue Nov 2, 2018 · 0 comments

Comments

@phipsgabler
Copy link
Owner

This data structure is completely immutable anyway, but currently not space-efficient, since it cats onto vectors. Something with sharing, O(1) push, and ideally O(1) indexing is needed.

The PersistentVector from FunctionalCollections should work perfectly, but I have the impression that it is not well curated currently.

Would be interesting if there's some persistent data structure that also has better than O(n) findfirst -- something like a persistent ordered dictionary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant