Skip to content

🥢 Add note to DynamicArrayLib and DynamicBufferLib - #1553

Merged
atarpara merged 2 commits into
mainfrom
doc-dynamic
Sep 2, 2026
Merged

🥢 Add note to DynamicArrayLib and DynamicBufferLib#1553
atarpara merged 2 commits into
mainfrom
doc-dynamic

Conversation

@atarpara

Copy link
Copy Markdown
Collaborator

Description

Describe the changes made in your pull request here.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Ran forge fmt?
  • Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Gas Snapshot Comparison Report

Generated at commit : ac17239, Compared to commit : 4225d5f

Contract Name Test Name Main Gas PR Gas Diff
EnumerableSetLibTest testEnumerableAddressSetBasic2() 175344 175309 -35
testEnumerableAddressSetUpdate() 454803 455190 387
testEnumerableBytes32SetBasic() 271151 271128 -23
testEnumerableBytes32SetBasic2() 178444 178427 -17
testIndexOfDirtyUpperBits() 227857 - -
testIndexOfDirtyUpperBitsLazy() 48826 - -
test__codesize() 21316 20983 -333
ERC1967FactoryTest testDeployBeaconProxyDeterministicAndCall() 403169 - -
testDeployBeaconProxyDeterministicAndUpgrade() 689718 674846 -14872
testDeployDeterministicAndUpgrade() 465255 465211 -44
test__codesize() 12926 12194 -732
FixedPointMathLibTest testAbs() 676 698 22
testAbsEdgeCases() 468 490 22
testAvgEdgeCase() 490 445 -45
testCbrtWadConverged() 24211 24191 -20
testCbrtWadDebug() 7325 7369 44
testDist() 631 675 44
testDistEdgeCases() 523 567 44
testDivWadUp() 2927 2949 22
testDivWadUpEdgeCases() 469 446 -23
testDivWadUpZeroDenominatorReverts() 3967 3945 -22
testDivWadZeroDenominatorReverts() 3966 3948 -18
testFactorial() 97546 97524 -22
testFullMulDiv() 1143 1099 -44
testFullMulDivUnchecked() 1578 1622 44
testFullMulDivUpRevertsIfRoundedUpResultOverflowsCase1() 4517 4450 -67
testFullMulDivUpRevertsIfRoundedUpResultOverflowsCase2() 4516 4494 -22
testInvMod() 12908 12885 -23
testLambertW0WadMonoDebug() 769068 769090 22
testLambertW0WadMonotonicallyIncreasing() 18356909 18356886 -23
testLambertW0WadMonotonicallyIncreasing2() 4030641 4030663 22
testLambertW0WadRevertsForOutOfDomain() 112681 112923 242
testLerpInt() 6455 6410 -45
testLerpUint() 6369 6413 44
testLnWad() 2094 2071 -23
testLnWadNegativeReverts() 11165 11231 66
testLnWadOverflowReverts() 4014 4037 23
testLnWadSmall() 2681 2703 22
testLog10() 75929 75973 44
testLog10Up() 4364 4408 44
testLog256() 22826 22804 -22
testLog2Up() 318981 318958 -23
testMulDiv() 1867 1911 44
testMulDivEdgeCases() 733 755 22
testMulDivUpEdgeCases() 854 831 -23
testMulDivUpZeroDenominator() 4019 4041 22
testMulDivZeroDenominatorReverts() 3996 4018 22
testMulSqrt() 1940987 1941009 22
testMulWadEdgeCases() 718 695 -23
testMulWadUp() 801 778 -23
testMulWadUpEdgeCases() 791 768 -23
testRPow() 3306 3283 -23
testRPowOverflowReverts() 13119 13229 110
testRawSDivWadEdgeCases() 11346 - -
testRawSMulWadEdgeCases() 4232 - -
testSDivWad() 836 858 22
testSDivWadRoundsTowardsZero() 1183 - -
testSMulWad() 1048 1028 -20
testSMulWadRoundsTowardsZero() 1783 - -
testSaturatingAdd() 1492 1491 -1
testSaturatingMul() 1622 1599 -23
testSci() 1828158 1828180 22
testSqrt() 45435 45390 -45
testSqrtHashedSingle() 54586 54630 44
testSqrtWad() 7936 7914 -22
test__codesize() 62241 60859 -1382
LibSortTest testGroupSumSigned() 6156 - -
testHasDuplicateGas() 769634 769174 -460
testInsertionSortInts() 79973 79950 -23
testInsertionSortPsuedorandom() 63553 63575 22
testSearchSorted() 118069 118046 -23
testSearchSortedBasicCases() 2178 2200 22
testSearchSortedInts() 120068 120090 22
testSearchSortedWithEmptyArray() 721 677 -44
testSortAddressesReversed() 45520 45497 -23
testSortAddressesSorted() 41176 41133 -43
testSortInts() 887873 887851 -22
testSortMostlySame() 65967 65989 22
testSortOriginalMostlySame() 207232 207254 22
testSortOriginalSorted() 141641 141663 22
testSortPsuedorandom() 140070 140092 22
testSortSorted() 34564 34541 -23
testSortTestOverhead() 103257 103279 22
testSortedDifferenceDifferential() 182399 182422 23
testSortedIntersectionDifferential() 208324 208346 22
testUniquifySorted() 1660 1703 43
testUniquifySortedAddress() 4032 4010 -22
testUniquifySortedWithEmptyArray() 523 545 22
test__codesize() 26730 25386 -1344
LibTransientTest testEmptyStackPopReverts() 25131 25100 -31
testEmptyStackTopReverts() 3954 3923 -31
testRegistryAB() 450992 451036 44
testRegistryNotDeployed() 145298 145321 23
testStackPlacePopBytes() 38064 37865 -199
testUint256IncDecTransient() 151955 151893 -62
test__codesize() 24429 23574 -855
SafeTransferLibTest testApproveWithMissingReturn() 54368 54380 12
testApproveWithNonContractReverts() 28475 28465 -10
testApproveWithRetry() 1059818 1059830 12
testApproveWithRetryWithNonContractReverts() 28946 28914 -32
testApproveWithReturnsFalseReverts() 31986 31998 12
testApproveWithReturnsTooLittleReverts() 31944 31934 -10
testApproveWithReturnsTooMuch() 54708 54657 -51
testApproveWithRevertingReverts() 31923 31924 1
testApproveWithStandardERC20() 54294 54306 12
testForceSafeTransferETH() 1478611 1478434 -177
testForceSafeTransferETHPooledWithdrawalStaysSolvent() 1068830 - -
testForceSafeTransferETHToRevertingRecipient() 740616 - -
testForceSafeTransferETHWithExactRefund() 602704 - -
testForceSafeTransferETHWithPartialRefund() 602649 - -
testTotalSupplyQuery() 59842 59926 84
testTransferAllETHToContractWithoutFallbackReverts() 32251 32235 -16
testTransferAllWithStandardERC20() 52419 52442 23
testTransferETH() 55619 55597 -22
testTransferETHToContractWithoutFallbackReverts() 32510 32494 -16
testTransferFromWithMissingReturn() 1127451 632647 -494804
testTransferFromWithNonContractReverts() 29814 29897 83
testTransferFromWithReturnsFalseReverts() 3594679 641903 -2952776
testTransferFromWithReturnsTooLittleReverts() 624877 641244 16367
testTransferFromWithReturnsTooMuch() 616936 633899 16963
testTransferFromWithRevertingReverts() 614668 631238 16570
testTransferFromWithStandardERC20() 617302 634250 16948
testTransferWithMissingReturn() 642948 659619 16671
testTransferWithNonContractReverts() 28481 28471 -10
testTransferWithReturnsFalseReverts() 619234 635920 16686
testTransferWithReturnsTooLittleReverts() 1314454 635661 -678793
testTransferWithReturnsTooMuch() 643320 659307 15987
testTransferWithRevertingReverts() 619289 635367 16078
testTransferWithStandardERC20() 643226 659835 16609
testTryTransferAllETH() 228733 228689 -44
testTryTransferETH() 228692 228736 44
test__codesize() 46218 39737 -6481

@atarpara
atarpara merged commit 2afba69 into main Sep 2, 2026
14 checks passed
@atarpara
atarpara deleted the doc-dynamic branch September 2, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant