Skip to content

Conversation

@cmrschwarz
Copy link

@cmrschwarz cmrschwarz commented Nov 25, 2024

The current comparisons between an integer type like i64 and a BigInt
promote the i64 to a BigInt through BigInt::from.
That's pretty inefficient as it causes a memory allocation and deallocation.
This PR fixes this by special casing those comparisons.

Thank you for the great library btw, this has saved my quite some headache ❤️ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant