-
Notifications
You must be signed in to change notification settings - Fork 835
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 <[email protected]>
Use a native lib for modexp precompile. Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
update native libs Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
Update the acceptance test containers to be more in line with the build containers. Ubuntu 22.04, etc. Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
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 <[email protected]>
Signed-off-by: Danno Ferrin <[email protected]>
Increate the speed of ModExp gas calculations by using primitive types. Use a native lib for modexp precompile. Signed-off-by: Danno Ferrin <[email protected]> * Native modexp Signed-off-by: Gabriel-Trintinalia <[email protected]>
Increate the speed of ModExp gas calculations by using primitive types. Use a native lib for modexp precompile. Signed-off-by: Danno Ferrin <[email protected]> * Native modexp Signed-off-by: Ameziane H <[email protected]>
Increate the speed of ModExp gas calculations by using primitive types. Use a native lib for modexp precompile. Signed-off-by: Danno Ferrin <[email protected]> * Native modexp Signed-off-by: Sally MacFarlane <[email protected]>
Increate the speed of ModExp gas calculations by using primitive types. Use a native lib for modexp precompile. Signed-off-by: Danno Ferrin <[email protected]> * 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