Merge pull request #12012 from ethereum/solc-runs-text

Improve `--optimize-runs` text
This commit is contained in:
chriseth 2021-09-23 10:49:00 +02:00 committed by GitHub
commit 9552270c62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -724,7 +724,7 @@ General Information)").c_str(),
// TODO: The type in OptimiserSettings is size_t but we only accept values up to 2**32-1
// on the CLI and in Standard JSON. We should just switch to uint32_t everywhere.
po::value<unsigned>()->value_name("n")->default_value(static_cast<unsigned>(OptimiserSettings{}.expectedExecutionsPerDeployment)),
"Set for how many contract runs to optimize. "
"The number of runs specifies roughly how often each opcode of the deployed code will be executed across the lifetime of the contract. "
"Lower values will optimize more for initial deployment cost, higher values will optimize more for high-frequency usage."
)
(