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

Extremely Slow compile Times on XCode 8.2.1 and swift 3.0.2 #2127

Closed
4rianton opened this issue Feb 1, 2017 · 1 comment
Closed

Extremely Slow compile Times on XCode 8.2.1 and swift 3.0.2 #2127

4rianton opened this issue Feb 1, 2017 · 1 comment

Comments

@4rianton
Copy link

4rianton commented Feb 1, 2017

I did a profiling on my build times since lately my builds were taking copious amounts of time.

I followed the instructions here: http://irace.me/swift-profiling

I would like to report that removing these lines:

        chart = PieChartView(autoLayout: true)
        chart.usePercentValuesEnabled = true
        chart.rotationWithTwoFingers = true
        chart.holeRadiusPercent = 0.7
        chart.setExtraOffsets(left: 50, top: 0, right: 50, bottom: 0)
        chart.descriptionText = ""
        chart.legend.enabled = false
        chart.highlightPerTapEnabled = false
        addSubview(chart)
        
        let separator = LineView(autoLayout: true)
        addSubview(separator)
        
        addContractButton = Button(autoLayout: true)
        addContractButton.setTitle(NSLocalizedString("", comment: "").uppercased(), for: UIControlState())
        addContractButton.backgroundColor = UIColor.blueVXColor()
        addSubview(addContractButton)

using the report from the profiling:

52344.7ms	/Users/x/Documents/Development/x-iOS/x/ContractsStatsView.swift:37:10	@objc func setupUI()
47448.6ms	/Users/x/Documents/Development/x-iOS/x/ContractsStatsView.swift:37:10	@objc func setupUI()
13186.4ms	/Users/x/Documents/Development/x-iOS/x/ContractListView.swift:62:10	@objc func setupUI()
9313.3ms	/Users/x/Documents/Development/x-iOS/x/ContractListView.swift:62:10	@objc func setupUI()
2442.2ms	/Users/x/Documents/Development/x-iOS/x/WelcomeView2.swift:35:10	@objc func setupUI()
1714.9ms	/Users/x/Documents/Development/x-iOS/x/WelcomeView2.swift:35:10	@objc func setupUI()

has cut 52 seconds from my build time. Is this a known issue? Is there a way to fix this? I am building all the views programmatically if that matters.

@pmairoldi
Copy link
Collaborator

Well those come from your app not Charts. I just did the same thing with the library code and the longest file to compile is 278.0ms. I believe the problem is on your end.

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

No branches or pull requests

2 participants