Optimizer settings:
optimizer: {
enabled: true,
runs: 200
}
Methods |
|
---|---|
executeDiamondCutProposal | 1 227 |
diamondCut | 549 |
Deployment |
|
---|---|
DiamondCutFacet | 12 518 |
DiamondCutTest | 14 257 |
DiamondProxy | 17 123 |
For instance, change this:
for (uint256 i = 0; i < facetCutsLength; ++i) {
...
}
To this:
for (uint256 i = 0; i < facetCutsLength; ) {
...
unchecked{
++i;
}
for (uint256 i = 0; i < facetCutsLength; ++i) {
for (uint256 i = 0; i < selectorsLength; ++i) {
for (uint256 i = 0; i < selectorsLength; ++i) {
for (uint256 i = 0; i < selectorsLength; ++i) {