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

improve: Use pre-increment to save gas on loops #522

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

nicholaspai
Copy link
Member

This optimization skips storing the value before the incremental
operation as the return value of the expression is ignored.

This optimization skips storing the value before the incremental
operation as the return value of the expression is ignored.
@nicholaspai nicholaspai merged commit 36584f9 into master Jun 17, 2024
7 checks passed
@nicholaspai nicholaspai deleted the 0624oz/n11 branch June 17, 2024 15:16
nicholaspai added a commit that referenced this pull request Jun 19, 2024
nicholaspai added a commit that referenced this pull request Jun 19, 2024
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.

2 participants