-
Notifications
You must be signed in to change notification settings - Fork 27
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
Backport insertion-ordered immutable map to capsule #5
Comments
Hi, I made an experimental implementation of an insertion-ordered immutable map based on the CHAMP trie in Capsule. It stores elements with sequence numbers in the trie. Its iterators sort the elements with a bucket sort. It uses a large number of buckets (between N and N*4 buckets), so that the sorting can be performed in linear time. I have benchmarked it against VectorMap in Scala. The performance is better, except for retrieval of the first/last element, which takes linear time in my implementation. The code and benchmark results are here. |
this is interesting! What kind of applications do you have in mind typically? Just to get an idea of what we could build on top of this. |
Well, mostly the following kinds of applications:
|
👍 yes that sounds good. @msteindorfer do you have time to review @wrandelshofer 's branch? I think we might be able to use his contributions for Rascal as well. What do you think? |
I previously already implemented an insertion-ordered immutable map for another open-source project. The goal is to backport this implementation to capsule and integrate them into capsule's API.
The text was updated successfully, but these errors were encountered: