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

Make types more explicit to reduce complie times #8

Merged
merged 1 commit into from
Jul 9, 2016

Conversation

elgordino
Copy link

SpriteKit-Spring.swift was taking over 50 seconds to compile in Xcode 7.3.1 / Swift 2.2. This appears to be due to the type inference engine having to work very hard.

I have made a few changes to make the types more explicit and this has reduced compile times to a few hundred ms.

Fair warning! I haven't tested this change for anything other than the functions I am using in my project.

@ataugeron ataugeron merged commit c2058cf into ataugeron:master Jul 9, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants