Prevent dup-ing values that are cheaper to recompute · Issue #12963 · ethereum/solidity (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@hrkrshnn

Description

@hrkrshnn

From foundry-rs/foundry#1373

the TIMESTAMP opcode costs 2 gas, so this is a weird optimization. DUP1 costs 3 gas and POP costs 2 gas, so really, there isn't any gas saving here?

Metadata

Metadata

Labels

Development

No branches or pull requests

Issue actions