You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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?