RRB-Trees: Efficient Immutable Vectors

(infoscience.epfl.ch)

17 points | by azhenley 2 days ago ago

4 comments

  • wasting_time 2 days ago

    A refreshing break from Molt News. Now I want to check how vectors are implemented in my favorite languages.

    • inhumantsar a day ago

      the `im` rust crate provides immutable data structures, one of them being an RRB-based Vec. don't remember what the stdlib Vec uses.

      • oniony a day ago

        I believe Vec is a straight array underneath, which is reallocated at a larger size when full. And Vector in the `im` crate you mentioned looks very interesting indeed.

  • erichocean 17 hours ago

    If you like this kind of thing, Bifurcan [0] is a Java library with implementations of RBB-trees and related (fast) immutable data structures.

    [0] https://github.com/lacuna/bifurcan