Skip to content

add eip-7883 changes #3399

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

add eip-7883 changes #3399

wants to merge 2 commits into from

Conversation

advaita-saha
Copy link
Contributor

if maxLen > 32.u256:
result = maxLen + 7
result = result div 8
result = result * result
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for this result = result ... accumulator style? If it were managing to be truly in-place with these large operands, that might be interesting, but it's using formally full calculation then assignment style.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iirc stint doesn't have *= operator.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but then why not use a more usual expression style rather than accumulate through result? It's not really saving any CPU or memory that I can tell.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no particular reason, feel free to rewrite it using expression style.

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.

3 participants