It looks like udivmod performance can further be increased when dividing two "large" (i.e. greater than u128::MAX).
Specifically, the algorithm in primitive-types performs significantly better for these larger numbers.
See #15 (comment) and #15 (comment) for more details and more resources on fast integer division algorithms (including libgmp paper)
It looks like
udivmodperformance can further be increased when dividing two "large" (i.e. greater thanu128::MAX).Specifically, the algorithm in
primitive-typesperforms significantly better for these larger numbers.See #15 (comment) and #15 (comment) for more details and more resources on fast integer division algorithms (including
libgmppaper)