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

change SLOAD to MLOAD #350

Closed molly-ting closed 9 months ago

molly-ting commented 1 year ago

Reading a state variable costs more gas than reading a local variable. If a state variable is read multiple times, it saves gas to cache the variable as a local variable and then read the local variable.

stale[bot] commented 9 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.