Skip to content

Conversation

drewnoakes
Copy link
Member

By changing the set of subscriptions to an immutable collection and using optimistic locking to update it, we avoid having to copy the list of subscribers within a lock on every update, reducing allocations and the scope of synchronised blocks.

@ghost ghost added the area-dashboard label Dec 6, 2023
By changing the set of subscriptions to an immutable collection and using optimistic locking to update it, we avoid having to copy the list of subscribers within a lock on every update, reducing allocations and the scope of synchronised blocks.
@drewnoakes drewnoakes force-pushed the avoid-copying-subscriber-list branch from 27876f8 to 30c54f6 Compare December 6, 2023 21:59
@drewnoakes drewnoakes requested a review from smitpatel December 6, 2023 22:24
@drewnoakes drewnoakes merged commit 6cba53d into dotnet:main Dec 7, 2023
@drewnoakes drewnoakes deleted the avoid-copying-subscriber-list branch December 7, 2023 20:02
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants