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

Check that gas computation and other metering is removed from loops #37

Open
chriseth opened this issue Apr 13, 2016 · 0 comments
Open

Comments

@chriseth
Copy link
Contributor

If a loop iteration consumes constant gas (g) and the number of iterations is "known" (n) in advance, the optimizer should convert the out-of-gas checks into a single if (gas <= n * g) throw before entering the loop.

@chriseth chriseth added this to the Backlog milestone Apr 13, 2016
@chfast chfast removed this from the Backlog milestone Apr 18, 2016
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