Skip to content

Commit

Permalink
increase optimizer runs for non posm contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
gretzke committed Nov 27, 2024
1 parent 8678bd4 commit 5c7bf71
Show file tree
Hide file tree
Showing 73 changed files with 75 additions and 73 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
133930
133006
Original file line number Diff line number Diff line change
@@ -1 +1 @@
135399
134475
Original file line number Diff line number Diff line change
@@ -1 +1 @@
127881
126957
Original file line number Diff line number Diff line change
@@ -1 +1 @@
128019
127095
Original file line number Diff line number Diff line change
@@ -1 +1 @@
128040
127695
Original file line number Diff line number Diff line change
@@ -1 +1 @@
127483
127137
Original file line number Diff line number Diff line change
@@ -1 +1 @@
134956
134600
Original file line number Diff line number Diff line change
@@ -1 +1 @@
134398
134043
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_native.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
148090
147754
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_sameRange.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
156734
156386
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_withClose.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
156734
156386
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_withTakePair.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
156049
155701
Original file line number Diff line number Diff line change
@@ -1 +1 @@
114044
113699
Original file line number Diff line number Diff line change
@@ -1 +1 @@
122399
121955
Original file line number Diff line number Diff line change
@@ -1 +1 @@
121714
121270
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_decrease_burnEmpty.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
137873
137518
Original file line number Diff line number Diff line change
@@ -1 +1 @@
130958
130612
Original file line number Diff line number Diff line change
@@ -1 +1 @@
135115
134671
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_decrease_take_take.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
122956
122512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
161238
160674
Original file line number Diff line number Diff line change
@@ -1 +1 @@
160149
159585
Original file line number Diff line number Diff line change
@@ -1 +1 @@
144034
143554
Original file line number Diff line number Diff line change
@@ -1 +1 @@
138481
138253
Original file line number Diff line number Diff line change
@@ -1 +1 @@
180059
179615
Original file line number Diff line number Diff line change
@@ -1 +1 @@
149905
149533
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_native.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
368030
367550
Original file line number Diff line number Diff line change
@@ -1 +1 @@
376633
376153
Original file line number Diff line number Diff line change
@@ -1 +1 @@
375828
375348
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_onSameTickLower.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
319862
319298
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_onSameTickUpper.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
320504
319940
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_sameRange.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
246086
245522
Original file line number Diff line number Diff line change
@@ -1 +1 @@
421324
420760
Original file line number Diff line number Diff line change
@@ -1 +1 @@
325880
325316
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_withClose.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
422474
421910
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_withSettlePair.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
421503
420939
Original file line number Diff line number Diff line change
@@ -1 +1 @@
459041
458237
Original file line number Diff line number Diff line change
@@ -1 +1 @@
146790
145902
Original file line number Diff line number Diff line change
@@ -1 +1 @@
153173
152117
2 changes: 1 addition & 1 deletion .forge-snapshots/Quoter_exactOutputSingle_oneForZero.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
79795
79267
2 changes: 1 addition & 1 deletion .forge-snapshots/Quoter_exactOutputSingle_zeroForOne.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
85220
84512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
123604
122728
Original file line number Diff line number Diff line change
@@ -1 +1 @@
148251
147363
Original file line number Diff line number Diff line change
@@ -1 +1 @@
81166
80638
2 changes: 1 addition & 1 deletion .forge-snapshots/Quoter_quoteExactInput_twoHops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
206526
204942
Original file line number Diff line number Diff line change
@@ -1 +1 @@
123112
122224
Original file line number Diff line number Diff line change
@@ -1 +1 @@
153947
152879
Original file line number Diff line number Diff line change
@@ -1 +1 @@
123139
122251
Original file line number Diff line number Diff line change
@@ -1 +1 @@
99253
98545
2 changes: 1 addition & 1 deletion .forge-snapshots/Quoter_quoteExactOutput_twoHops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
206266
204670
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
122493
121653
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
120863
120119
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_oneForZero.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
129747
128991
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_zeroForOne.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
136441
135517
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn2Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
194463
192843
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn2Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
180515
178979
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn3Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
252534
250218
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn3Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
238586
236354
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactInputSingle.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
134925
134001
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactInputSingle_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
120977
120137
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactInputSingle_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
119325
118581
Original file line number Diff line number Diff line change
@@ -1 +1 @@
128792
127940
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut1Hop_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
122073
121329
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut1Hop_oneForZero.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
130957
130201
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut1Hop_zeroForOne.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
135794
134858
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut2Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
192935
191291
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut2Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
185933
184373
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut3Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
250140
247788
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut3Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
243138
240870
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut3Hops_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
226743
224943
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOutputSingle.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
134273
133337
Original file line number Diff line number Diff line change
@@ -1 +1 @@
127271
126419
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOutputSingle_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
120565
119821
4 changes: 3 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[profile.default]
out = 'foundry-out'
solc_version = '0.8.26'
optimizer_runs = 30000
optimizer_runs = 44444444
via_ir = true
ffi = true
fs_permissions = [{ access = "read-write", path = ".forge-snapshots/" }, { access = "read", path = "foundry-out/" }]
Expand All @@ -11,11 +11,13 @@ fuzz_runs = 10_000
bytecode_hash = "none"

additional_compiler_profiles = [
{ name = "posm", via_ir = true, optimizer_runs = 30000 },
{ name = "descriptor", via_ir = true, optimizer_runs = 1 },
{ name = "test", via_ir = false }
]

compilation_restrictions = [
{ paths = "src/PositionManager.sol", optimizer_runs = 30000 },
{ paths = "src/PositionDescriptor.sol", optimizer_runs = 1 },
{ paths = "test/**", via_ir = false }
]
Expand Down

0 comments on commit 5c7bf71

Please sign in to comment.