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

[WIP] Division and multiplication optimization #21

Merged
merged 18 commits into from
Apr 21, 2018
Merged

[WIP] Division and multiplication optimization #21

merged 18 commits into from
Apr 21, 2018

Conversation

mratsim
Copy link
Contributor

@mratsim mratsim commented Apr 20, 2018

No description provided.

@mratsim
Copy link
Contributor Author

mratsim commented Apr 20, 2018

Following checking special cases where we can have fast division we are now only 3x times slower than ttmath on Uint256 with several low hanging fruits.

This is the benchmark results:

2018-04-20_18-07-24
2018-04-20_18-10-46

Among the low hanging fruits:

  • inlining the MpUintImpl equality and also use iterative comparison for better vectorization opportunities
  • the multiple creations of initMpUintImpl in the extended precision naiveMulImpl are slowing down the program

@mratsim mratsim merged commit 1749e0e into master Apr 21, 2018
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