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-10342] Compile Time Regression #52742

Closed
swift-ci opened this issue Apr 9, 2019 · 3 comments
Closed

[SR-10342] Compile Time Regression #52742

swift-ci opened this issue Apr 9, 2019 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself regression swift 5.0

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Apr 9, 2019

Previous ID SR-10342
Radar rdar://problem/49996408
Original Reporter Valpertui (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

Xcode Version 10.2 (10E125)
Apple Swift version 5.0 (swiftlang-1001.0.69.5 clang-1001.0.46.3)

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

md5: 15ba1d1c0e6d5211bb83bce18362bdb9

Issue Description:

The open project SwiftDate (https://github.com/malcommac/SwiftDate) contains 124 files with several large literals defining dictionaries of [String: Any]. (see the files there : https://github.com/malcommac/SwiftDate/tree/master/Sources/SwiftDate/Formatters/RelativeFormatter/languages)

When building the framework using Xcode 10.2 with whole module optimization enabled, the framework take 300 seconds to build. It was taking around 30 seconds at most using Xcode 10.1.

@belkadan
Copy link
Contributor

belkadan commented Apr 9, 2019

@xedin, did anything change significantly here?

@swift-ci
Copy link
Collaborator Author

Comment by Valentin Pertuisot (JIRA)

Update for Xcode 10.2.1 :

  • Release builds (whole module optimization) of this framework (Swiftdate) are about 10% quicker. (300 seconds -> 270)

  • Debug builds (no optimizations) of this framework are now around 75% quicker (110 seconds -> 25 seconds)

(All builds are done with derived data removed)

@eeckstein
Copy link
Member

This is a duplicate of https://bugs.swift.org/browse/SR-10209

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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 regression swift 5.0
Projects
None yet
Development

No branches or pull requests

4 participants