Using returndatasize() directly instead of storing it in memory is ideal, as it requires only 2 gas to read, instead of doing an mstore and multiple mload's, each taking 3 gas for every use.
Currently, these contracts were found to use an intermediary variable:
Description
Using
returndatasize()
directly instead of storing it in memory is ideal, as it requires only 2 gas to read, instead of doing anmstore
and multiplemload
's, each taking 3 gas for every use.Currently, these contracts were found to use an intermediary variable:
Multisend
MultiSendCallOnly
DelegateCaller