Skip to content

[Observation] Disable caching of KeyPaths #78853

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

Conversation

phausler
Copy link
Contributor

Caching KeyPaths have a number of sharp edges; firstly some KeyPaths may be invalid for caching - such as KeyPaths that ought to in all rights be Sendable... but sadly by the nature of them cannot be since it is a generic specific condition (not a type level or macro exposed condition). This includes cases where the value of the generic of the KeyPath is any X or some X. Furthermore we cannot cache the KeyPaths as a static member of a generic type.

@phausler
Copy link
Contributor Author

@swift-ci please smoke test

@phausler phausler merged commit 854fa5c into swiftlang:main Jan 31, 2025
3 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.

1 participant