Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Observation] Optimize cancellation path to avoid excessive copies #73288

Merged
merged 1 commit into from Apr 30, 2024

Conversation

phausler
Copy link
Member

The existing code could potentially mis-optimize and create copies of the set for the cancellation tokens. This mutates it in-place to avoid those copies.

Resolves: rdar://127018986

@phausler
Copy link
Member Author

@swift-ci please test

@phausler phausler force-pushed the pr/observation_cancel_optimization branch from 5200475 to 326f694 Compare April 26, 2024 17:34
@phausler phausler force-pushed the pr/observation_cancel_optimization branch from 326f694 to a8334ea Compare April 26, 2024 17:36
@phausler
Copy link
Member Author

@swift-ci please test

@phausler phausler merged commit 54b3a9b into apple:main Apr 30, 2024
5 checks passed
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.

None yet

2 participants