Content pfp
Content
@
0 reply
0 recast
2 reactions

0age pfp
0age
@0age
looking to turn off *just* the FunctionSpecializer optimization step trying to reuse code to keep size down & it's absolutely crushing me; would rather not hack around it anyone know how to manage this in foundry? https://docs.soliditylang.org/en/latest/internals/optimizer.html#functionspecializer
2 replies
49 recasts
196 reactions

0age pfp
0age
@0age
this is what I have now; mainly looking for the "optimizerSteps" value that's applied out of the box when you activate optimization + IR ``` [profile.default] solc = '0.8.28' evm_version='cancun' via_ir = true optimizer_runs = 4_294_967_295 bytecode_hash = 'none' src = "src" out = "out" libs = ["lib"] extra_output_files = ["irOptimized"] [profile.default.optimizer_details.yulDetails] optimizerSteps = "dhfoD[xarrscLMcCTU]uljmul:fDnTOcmu" # TODO: use default with everything but FunctionSpecializer (F) ```
0 reply
0 recast
17 reactions

‍‍ pfp
‍‍
@git
I'm a solidity noob but it looks like you're looking at docs for 0.8.29 and your version is 0.8.28
1 reply
0 recast
1 reaction