Skip to content

fix: improve lock ordering in assign_lookups_in_phase#336

Open
Lil-Duckling-22 wants to merge 1 commit intoaxiom-crypto:community-editionfrom
Lil-Duckling-22:fix/lock-order-assign-lookups
Open

fix: improve lock ordering in assign_lookups_in_phase#336
Lil-Duckling-22 wants to merge 1 commit intoaxiom-crypto:community-editionfrom
Lil-Duckling-22:fix/lock-order-assign-lookups

Conversation

@Lil-Duckling-22
Copy link
Copy Markdown

Lock copy_manager once before the loop instead of locking it on each iteration.
This improves performance and prevents potential deadlocks by maintaining a consistent lock order (copy_manager -> cells_to_lookup) across all code paths.

Lock copy_manager once before the loop instead of locking it on each iteration. 
This improves performance and prevents potential deadlocks by maintaining a 
consistent lock order (copy_manager -> cells_to_lookup) across all code paths.
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