-
Notifications
You must be signed in to change notification settings - Fork 733
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
Speedup modexp #4780
Speedup modexp #4780
Conversation
Increate the speed of ModExp gas calculations. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Use a native lib for modexp precompile. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
update native libs Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Update the acceptance test containers to be more in line with the build containers. Ubuntu 22.04, etc. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion and a typo found.
* | ||
* @param a first value | ||
* @param b second value | ||
* @return value of a times b if no over/underflows or Long.MAX_VALUE/Long.MIN_VALUE otherwise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably meant Integer in these docs.
Bytes num; | ||
if (offset + length <= input.size()) { | ||
num = input.slice(offset, length).trimLeadingZeros(); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: the else case behavior wouldn't be intuitive to me as a caller, might warrant a javadoc explaining that you can request more bytes back than available from your offset.
Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com>
Increate the speed of ModExp gas calculations by using primitive types. Use a native lib for modexp precompile. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com> * Native modexp Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
Increate the speed of ModExp gas calculations by using primitive types. Use a native lib for modexp precompile. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com> * Native modexp Signed-off-by: Ameziane H <ameziane.hamlat@consensys.net>
Increate the speed of ModExp gas calculations by using primitive types. Use a native lib for modexp precompile. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com> * Native modexp Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Increate the speed of ModExp gas calculations by using primitive types. Use a native lib for modexp precompile. Signed-off-by: Danno Ferrin <danno.ferrin@swirldslabs.com> * Native modexp
PR description
Speed up the gas calculation and execution of the modexp precompile.
Fixed Issue(s)
Documentation
doc-change-required
label to this PR ifupdates are required.
Changelog