Skip to content

Requirement environment: adopt the conformance's generic signature when we can. #12204

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 1 commit into from
Oct 1, 2017

Conversation

DougGregor
Copy link
Member

Noticed by Slava: when the requirement is non-generic, the requirement
signature's generic signature is always going to be the same as the
conformance declaration context's generic signature, so use that immediately.

This eliminates a large number of generic signature builders created due to
requirement signatures (e.g., from 4893 -> 569 when measured against
the standard library work for SE-0157).

@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@DougGregor DougGregor force-pushed the req-sig-short-circuit branch from 12fb3e6 to 073d757 Compare October 1, 2017 06:44
…en we can.

Noticed by Slava: when the requirement is non-generic, the requirement
signature's generic signature is always going to be the same as the
conformance declaration context's generic signature, so use that immediately.

This eliminates a large number of generic signature builders created due to
requirement signatures (e.g., from 4893 -> 569 when measured against
the standard library work for SE-0157).

Short-circuit build of requirement environment.

This is all Slava and it’s magnificent.

FIXUP for “the Slava change”
@DougGregor DougGregor force-pushed the req-sig-short-circuit branch from 073d757 to 45ef8cf Compare October 1, 2017 06:45
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 0f73f98 into swiftlang:master Oct 1, 2017
@DougGregor DougGregor deleted the req-sig-short-circuit branch October 1, 2017 14:06
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