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
Currently, the arithmetic operations do a lot of clones. However, this is quite inefficient when using types with non-trivial Clone impls, such as BigInt in BigRational. We could instead do the operations on references, to avoid the cloning. However, since the impls use the Integer trait, which only supports arithmetic operations on owned values, it seems this would need new trait bounds (like NumRef or RefNum).
The text was updated successfully, but these errors were encountered:
Currently, the arithmetic operations do a lot of
clone
s. However, this is quite inefficient when using types with non-trivialClone
impls, such asBigInt
inBigRational
. We could instead do the operations on references, to avoid the cloning. However, since the impls use theInteger
trait, which only supports arithmetic operations on owned values, it seems this would need new trait bounds (likeNumRef
orRefNum
).The text was updated successfully, but these errors were encountered: