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

op_exp needs to have a shortcut for 2^e #231

Closed
AlexeyAkhunov opened this issue May 2, 2020 · 2 comments
Closed

op_exp needs to have a shortcut for 2^e #231

AlexeyAkhunov opened this issue May 2, 2020 · 2 comments

Comments

@AlexeyAkhunov
Copy link

There are a lot of contracts on the Ethereum mainnet that were compiled with Solidity prior to the shifting operations were available. For those, exponentiation 2^160 is used to emulate 1<<160. Measurements performed on turbo-geth confirm this. Since we are planning to integrate evmone into turbo-geth, and we have already implemented this shortcut (erigontech/erigon#505), it would be good to maintain that in evmone.

@axic
Copy link
Member

axic commented May 4, 2020

I think it would make sense considering an EIP for this, otherwise we are introducing yet another imbalance to "costs".

@AlexeyAkhunov
Copy link
Author

I disagree with the notion that every performance improvement needs to lead to the decreasing gas cost. The other way around - yes

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

No branches or pull requests

2 participants