Hello!
I wanted to implement a Rational number in order to mess around with some concepts, and I was surprised there used to be a Rational implementation on std in 0.14. I also see there is a comment regarding changing it to use it’s own allocator instead of using two Ints.
Okay, my questions are:
- Why this got dropped? Any plans to bringing it back? (did some PR digging but did not find anything) Was it just due to suboptimal performance by storing two Ints?
- Now that master is explicitly rejecting the managed variants, is BigInt going to suffer this same fate? Idk if this redesing also applies to the Int type.
- If this were to be implemented again (might look into it) which would be the correct approach? I assume it’s not to have it’s own allocator for sure, but also not holding two BigInt again. Is maybe storing a Limb on there?
Thank you and have a nice day :))