Uniswap / v3-periphery

🦄 🦄 🦄 Peripheral smart contracts for interacting with Uniswap v3
https://uniswap.org
GNU General Public License v2.0
1.15k stars 1.06k forks source link

declaring return variable in function's declaration to save gas #356

Closed molly-ting closed 8 months ago

molly-ting commented 11 months ago

If returning a local variable, solidity will create a local variable and copy its value to the stack variable that represents the return variable. This consumes more gas than declaring return variable in function's declaration.

stale[bot] commented 8 months ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.