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-6903] Swift 3.2 very long compile time with nil coalescing #49452

Open
swift-ci opened this issue Feb 2, 2018 · 2 comments
Open

[SR-6903] Swift 3.2 very long compile time with nil coalescing #49452

swift-ci opened this issue Feb 2, 2018 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself performance type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Feb 2, 2018

Previous ID SR-6903
Radar None
Original Reporter Nicolas Buquet (JIRA User)
Type Bug

Attachment: Download

Environment

MacBook Pro Core i7 2.9 GHz, 16 GB, Xcode 9.2 (9C40b)

Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Target: x86_64-apple-macosx10.9

Swift Compiler - Language: SWIFT_VERSION set to 'Swift 3.2'

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

md5: e30045bb341aa225f42e4f2d13bb399d

Issue Description:

Swift is very long to compile this simple file (more than 40 seconds).

Passing to "Quick version" in the file (no ternary operator) makes the compilation immediate.

@belkadan
Copy link
Contributor

belkadan commented Feb 2, 2018

@rudkx, where are you collecting these? Looks like some of the cases we know.

@keith
Copy link
Collaborator

keith commented Sep 3, 2020

FYI this in general is still an issue, another example:

let a: String? = nil
print(a ?? a ?? a ?? a ?? a ?? a ?? a ?? a ?? a)

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 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 performance type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

3 participants