Skip to content

Constant folding uplc#7724

Draft
ana-pantilie wants to merge 18 commits intomasterfrom
ana/constant-folding-uplc
Draft

Constant folding uplc#7724
ana-pantilie wants to merge 18 commits intomasterfrom
ana/constant-folding-uplc

Conversation

@ana-pantilie
Copy link
Copy Markdown
Contributor

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Changelog fragments have been written (if appropriate)
    • Relevant tickets are mentioned in commit messages
    • Formatting, PNG optimization, etc. are updated
  • PR
    • (For external contributions) Corresponding issue exists and is linked in the description
    • Targeting master unless this is a cherry-pick backport
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

@@ -1 +1 @@
(\a -> addInteger (force a) (force a)) (delay (addInteger 1 2)) No newline at end of file
Copy link
Copy Markdown
Contributor Author

@ana-pantilie ana-pantilie Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't evaluate under delays

todo: look into why this doesn't get inlined here

@github-actions
Copy link
Copy Markdown
Contributor

Execution Budget Golden Diff

442b0ad (master) vs 0714828

output

plutus-tx-plugin/test/Budget/9.6/applicative.golden.eval

Metric Old New Δ%
CPU 197_308 32_100 -83.73%
Memory 702 300 -57.26%
Flat Size 13 9 -30.77%

plutus-tx-plugin/test/Budget/9.6/monadicDo.golden.eval

Metric Old New Δ%
CPU 197_308 32_100 -83.73%
Memory 702 300 -57.26%
Flat Size 13 9 -30.77%

plutus-tx-plugin/test/Budget/9.6/toFromData.golden.eval

Metric Old New Δ%
CPU 3_182_422 96_100 -96.98%
Memory 13_404 700 -94.78%
Flat Size 153 15 -90.20%

This comment will get updated when changes are made.

@github-actions
Copy link
Copy Markdown
Contributor

PR Preview Action v1.6.3

🚀 View preview at
https://IntersectMBO.github.io/plutus/pr-preview/docs/pr-7724/

Built to branch gh-pages at 2026-04-30 21:41 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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