Skip to content
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

[SR-11995] Long time compiling with redefenition methods of protocol extension #54429

Closed
swift-ci opened this issue Jan 6, 2020 · 2 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Jan 6, 2020

Previous ID SR-11995
Radar rdar://problem/58455435
Original Reporter Kuluum (JIRA User)
Type Bug

Attachment: Download

Environment

Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: ad20b65285017395b5ac7ed13df0d0a1

Issue Description:

In case when typealias of associatedtype is not defined, after ~20 redefined method type checking(I guess) time grows exponentially with each new method added. With ~35 methods compile time of one file takes about 4 hours.

time swiftc -typecheck LongTypeCheck.swift

real 10m41.692s

@beccadax
Copy link
Contributor

beccadax commented Jan 9, 2020

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@CodaFi
Copy link
Member

CodaFi commented Aug 16, 2022

Things have improved substantially here:

time swiftc -typecheck ~/Desktop/test.swift

________________________________________________________
Executed in   82.51 secs    fish           external
   usr time   82.16 secs    0.07 millis   82.16 secs
   sys time    0.21 secs    1.26 millis    0.20 secs

@CodaFi CodaFi closed this as completed Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

3 participants