Skip to content

RBTree alternatives because it's bugged and unmaintained #6

@kyrylo

Description

@kyrylo

Last month I hit a bug with TDigest on CRuby:

[3] pry(main)> Marshal.dump(TDigest::TDigest.new)
TypeError: instance of IO needed
from (pry):3:in `_dump'
[4] pry(main)>

This happens because RBTree is bugged (it cannot be dumped either). I've patched it in skade/rbtree#2 but it's highly unlikely that the PR will be reviewed, merged and released any time soon. RBTree is unmaintained.

I checked the implementation of the TDigest library and it seems like RBTree can be replaced with any other kind of tree, it's not a strict requirement.

It's important to make TDigests dumpable because it's a basic data structure and it'll be used by many other objects. What would you advise me to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions