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

Remove special handling for zero delta #263

Conversation

TomAFrench
Copy link
Contributor

The if (delta !=0) costs more than the add operation which we're potentially skipping when delta == 0. I've then removed the if statement.

@clemlak clemlak merged commit 1f5e550 into primitivefinance:main Mar 7, 2023
@clemlak
Copy link
Contributor

clemlak commented Mar 7, 2023

Good stuff! I'm merging this one right now, this helps reduce the bytecode just enough to be under the limit 👌

@TomAFrench TomAFrench deleted the remove-special-handling-for-zero-delta branch March 8, 2023 10:27
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