Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate the performance difference between Uint and BoxedUint #41

Open
fjarri opened this issue Dec 29, 2023 · 0 comments
Open

Investigate the performance difference between Uint and BoxedUint #41

fjarri opened this issue Dec 29, 2023 · 0 comments
Labels
performance Speeding things up

Comments

@fjarri
Copy link
Member

fjarri commented Dec 29, 2023

After #40, the safe 1024-bit prime generation benchmark for BoxedUint is about 30% slower than that for Uint. What are the contributing factors here?

One possible avenue for improvement would be making use of mutating methods to reduce the amount of allocations. This is especially prominent in lucas_test(), where we rely on clone() a lot, but may be useful in other places as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Speeding things up
Projects
None yet
Development

No branches or pull requests

1 participant