mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When type-checking a function or subscript that itself does not have generic parameters (but is within a generic context), we were creating a generic signature builder which will always produce the same generic signature as the enclosing context. Stop creating that generic signature builder. Instead, teach the CompleteGenericTypeResolver to use the generic signature + the canonical generic signature builder for that signature to resolve types, which also eliminates some extraneous re-type-checking. Improves type-checking performance of the standard library by 36%.
6.5 KiB
6.5 KiB