Skip to content

Revert changes related to Void binding favoring #77936

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

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Dec 3, 2024

  • [CSBindings] Adjust hasConversions to handle Void has having not conversions
  • [CSBindings] Don't favor application result types before application happens

Although the changes are correct they have a negative impact on performance in
some situations (especially the second part) because the result type would no longer
be eagerly bound.

@xedin
Copy link
Contributor Author

xedin commented Dec 3, 2024

@swift-ci please test

@slavapestov
Copy link
Contributor

Can you add a performance test case demonstrating the problem?

@xedin
Copy link
Contributor Author

xedin commented Dec 3, 2024

@slavapestov Unfortunately it's only a problem in a particular configuration which is not easy to reproduce with a standalone test-case because of how overload sets are structured.

@xedin xedin merged commit 08720ee into swiftlang:main Dec 4, 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.

2 participants