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

Fix random field/value generation speed #917

Open
Rumata888 opened this issue Mar 19, 2024 · 0 comments
Open

Fix random field/value generation speed #917

Rumata888 opened this issue Mar 19, 2024 · 0 comments

Comments

@Rumata888
Copy link
Contributor

Randomness in barretenberg is taken from random_device which is extremely slow (syscall per 4 bytes). It needs to be replaced at some point at least for the server usecase.
The conversion of that randomness to field format is also horrible, because it uses long division. It should be replaced by 2 montgomery multiplications + addition

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

No branches or pull requests

1 participant