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

Improve poseidon hash perf by using assign operators #569

Closed
wants to merge 2 commits into from

Conversation

tcoratger
Copy link
Collaborator

This pull request aims to enhance the performance of the poseidon hash by utilizing assignment multiplication (mul_assign) and addition (add_assign) operators whenever possible. By doing so, unnecessary copies are avoided, resulting in improved overall performance.

@xJonathanLEI
Copy link
Owner

Rebasing onto master for CI.

@xJonathanLEI
Copy link
Owner

Running the benchmark on my machine the perf changes from this seems to be within noise threshold. I'm not sure about this. Need to test a bit more I guess.

@xJonathanLEI
Copy link
Owner

@tcoratger This PR seems no longer relevant as the new Felt type does not provide methods equivalent to what you're adding here?

@xJonathanLEI
Copy link
Owner

Also it will be superseded by anything that comes out of #608 anyways. Closing now.

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.

2 participants