Uniswap / v3-periphery

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

change SLOAD to MLOAD #338

Closed molly-ting closed 1 year 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 1 year 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.