Skip to content

Optimise estimateTransactionFee#3

Open
steshaw wants to merge 12 commits into
etiennejf:babbagefrom
steshaw:estimate-tx-fee-optimisation
Open

Optimise estimateTransactionFee#3
steshaw wants to merge 12 commits into
etiennejf:babbagefrom
steshaw:estimate-tx-fee-optimisation

Conversation

@steshaw
Copy link
Copy Markdown

@steshaw steshaw commented Dec 19, 2022

This PR removes one call to toLedgerPParams, but there is at least one more to eliminate when estimating fees. More at DJED-472.

Be cautious in merging this change as it:

  • Only eliminates one call to toLedgerPParams when estimating fees. There seems to be at least one more call.
  • I traced other calls to toLedgerPParams coming from our test suite by using a simple trace in cardano-api directly.
  • This makes only about a 5% improvement to djed-test.
  • Once merged, the cabal.project of stablecoin-plutus should be updated to point back to etiennejf/plutus-libs from steshaw/plutus-libs.
  • I have an alternative idea that patches cardano-api directly and makes an 80% improvement to the execution time of djed-test.

Steven Shaw added 12 commits December 19, 2022 21:02
From plutus-app -> plutus-ledger -> Ledger.Fee. Copied as-it in here. To
be modified shortly.
This adds the ability to check CI result locally.
From from cardano-nodes's cardano-api. Only slightly modified currently
(imports).
We are specialised for BabbageEra now, so not needed. These were always
zero anyhow.
No longer required since we are specialised to ShelleyBasedEraBabbage.
This uses the new mcePParams field of MockChainEnv.
Along with evaluateTransactionFee
@steshaw steshaw changed the title Bring in copy of estimateTransactionFee Optimizing estimateTransactionFee Dec 21, 2022
@steshaw steshaw changed the title Optimizing estimateTransactionFee Optimise estimateTransactionFee Dec 21, 2022
@steshaw steshaw marked this pull request as ready for review December 21, 2022 21:23
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