Skip to content

Simplify implementation of Dispatch-async bridge #486

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jakepetroules
Copy link
Collaborator

Stress testing this approach over use of a long-lived DispatchIO channel appears to resolve the nondeterministic failures with the file descriptor being destroyed, and is easier to reason about.

Closes #21

@jakepetroules
Copy link
Collaborator Author

@swift-ci test

@jakepetroules
Copy link
Collaborator Author

@swift-ci test windows

@owenv
Copy link
Collaborator

owenv commented May 5, 2025

This looks good to me, any noticeable perf impact?

@jakepetroules jakepetroules force-pushed the eng/PR-simplify-async-io branch from 19827c2 to fee53da Compare May 10, 2025 23:10
@jakepetroules
Copy link
Collaborator Author

No, but I decided to make some more changes and now it's about 60x faster.

@jakepetroules
Copy link
Collaborator Author

@swift-ci test

@jakepetroules jakepetroules force-pushed the eng/PR-simplify-async-io branch from fee53da to 40a0927 Compare May 11, 2025 07:05
@jakepetroules
Copy link
Collaborator Author

@swift-ci test

Stress testing this approach over use of a long-lived DispatchIO channel appears to resolve the nondeterministic failures with the file descriptor being destroyed, and is easier to reason about.

Closes #21
@jakepetroules jakepetroules force-pushed the eng/PR-simplify-async-io branch from 40a0927 to 1ec5b30 Compare May 11, 2025 07:35
@jakepetroules
Copy link
Collaborator Author

@swift-ci test

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.

Nondeterministic test failure with AsyncStream + Dispatch interop
3 participants