Comparing three methods:
- Append immutable args to calldata for every call
- Read immutable args from contract code via
extcodecopy
- Read immutable args via
codecopy
by calling back intoaddress()
viacall
Results from 3. are left out in the graph, because it performed similarly, but worse than 2.
forge snapshot --mt testGas