Skip to content

Conversation

@pawurb
Copy link

@pawurb pawurb commented Dec 27, 2023

This PR enables optimizer for Yul and also fixes issue from #2 .

I'm seeing ~40% bytecode size reduction with optimization enabled on my test project https://github.com/pawurb/yul721

solc --strict-assembly src/Yul721.yul --bin | tail -1 | wc // 4697
solc --strict-assembly src/Yul721.yul --bin --optimize | tail -1 | wc // 2941

and also ~0.5% smaller gas usage.

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.

1 participant