Skip to content

Conversation

@morganthomas
Copy link
Contributor

@morganthomas morganthomas commented Dec 10, 2025

Closes #92
Closes #88

These changes do not affect the memory usage or the number of cycles for the XMSS aggregation program as tested with RUSTFLAGS='-C target-cpu=native' cargo run --release -- xmss --n-signatures 1775.

For the WHIR recursion program as tested with RUSTFLAGS='-C target-cpu=native' cargo run --release -- recursion --count 8, these changes cause:

  • Number of cycles to be increased by 902 (0.11%), from 807,634 to 808,266
  • Memory footprint to be decreased by 13,352 (1.38%), from 977,968 to 964,416

I saw no significant impact on proving time for either XMSS or WHIR recursion. With these changes, there is some tradeoff available between memory usage and number of cycles, so we can explore how to adjust this tradeoff to get better proving time.

@morganthomas morganthomas force-pushed the morgan/88c-rebase-rebase-rebase branch from 38d2144 to 76fcb53 Compare December 10, 2025 21:43
@morganthomas morganthomas marked this pull request as ready for review December 10, 2025 22:05
@TomWambsgans TomWambsgans merged commit 693b194 into leanEthereum:main Dec 10, 2025
3 checks passed
TomWambsgans pushed a commit that referenced this pull request Dec 10, 2025
* Block-level scoping (#92) and variable manager (#88)

* optimize WHIR recursion program for memory usage
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.

Block-level scoping Variable manager

2 participants