Skip to content

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Jul 30, 2025

By moving the Arc to only the inner cache in #10282, I inadvertently made all instances of SignaturesIdentifier save the cache on drop, which results in an unnecessary fs write

With #11098 this instance is now present in Cheatcodes so the drop is called on every individual Executor execution (clones Cheatcodes, which clones this struct), e.g. once for every unit tests, fuzz execution etc.

Move the drop impl to an inner struct and wrap everything in Arc

@DaniPopes DaniPopes enabled auto-merge (squash) July 30, 2025 12:42
Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

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

makes sense!

@DaniPopes DaniPopes merged commit 0d5c6fa into master Jul 30, 2025
22 checks passed
@DaniPopes DaniPopes deleted the dani/fix-sig-cache-save branch July 30, 2025 12:54
@github-project-automation github-project-automation bot moved this to Done in Foundry Jul 30, 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.

3 participants