Skip to content

Conversation

slavapestov
Copy link
Contributor

This can be called frequently, and in pathological cases, it costs a lot of CPU time to repeatedly erase opaque archetypes appearing in the lowered type. Cache the result in the SILFunction instead. This saved 15 seconds of compile time on a real project.

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test macOS

@slavapestov slavapestov merged commit 66dc1cc into swiftlang:main Aug 27, 2025
3 of 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.

1 participant