Replies: 2 comments 5 replies
-
@qwertie Hi there,
I am using AVL trees (in the current version) with some optimizations to minimize memory traffic when re-balancing the tree. But... in the newer version, I am switching to the 2-3-4 tree variant, which is more memory efficient (no need to store the
What will be the better collection e.g. |
Beta Was this translation helpful? Give feedback.
-
@qwertie I also wanted to note that the implementation is really matter. Despite that AVL trees are used by me, by Microsoft BCL Immutable collections and also by F# Map type, the benchmark shows the difference. I myself have switched 3 or 4 implementations, improving both speed and memory. |
Beta Was this translation helpful? Give feedback.
-
Hmm, I wonder if you were aware of Loyc.Collections when you started this project. I don't see a discussion in the readme of what kind of implementation you used, so I kind of wonder if it's the same as mine.
My collection types are mostly "semi-persistent" data structures, making them a bit different than standard persistent data structures - fundamentally more powerful, but possibly a bit slower in their immutable mode. I expect them to be faster than immutable data structures when used mutably, though. I'm curious if you'd be interested in adding Loyc.Collections to your benchmark comparison.
Beta Was this translation helpful? Give feedback.
All reactions