Skip to content

Conversation

Bilogweb3
Copy link
Contributor

Optimize Result<T, WalletSignerError> memory usage by boxing large error variants.

  • Before: 344 bytes (AwsSignerError variant)
  • After: ~50-100 bytes
  • Improvement: 70-85% reduction in stack usage

Changes:

  • Box AwsSignerError and GcpSignerError variants
  • Update error handling for compatibility

@onbjerg onbjerg merged commit 047d28d into foundry-rs:master Oct 2, 2025
16 checks passed
@onbjerg onbjerg self-assigned this Oct 2, 2025
@github-project-automation github-project-automation bot moved this to Done in Foundry Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants